jp.hishidama.html.lexer.token
クラス TextToken

java.lang.Object
  上位を拡張 jp.hishidama.html.lexer.token.Token
      上位を拡張 jp.hishidama.html.lexer.token.ListToken
          上位を拡張 jp.hishidama.html.lexer.token.TextToken
すべての実装されたインタフェース:
Cloneable, Iterable<Token>
直系の既知のサブクラス:
ScriptToken, SkipToken

public class TextToken
extends ListToken

HtHtmlLexerトークン(テキスト).

テキスト(複数の文字列)を保持するトークン。

導入されたバージョン:
2009.01.10
バージョン:
2009.02.21
作成者:
ひしだま

コンストラクタの概要
TextToken()
          コンストラクター.
TextToken(int size)
          コンストラクター.
 
メソッドの概要
 void add(WordAtom word)
          文字列追加.
 TextToken clone()
           
 void setText(TextToken text)
          文字列設定.
 
クラス jp.hishidama.html.lexer.token.ListToken から継承されたメソッド
add, add, calcLine, cut, cut, cutWithPreSkip, get, getLast, getTextLength, iterator, remove, set, size, writeTo, writeTo
 
クラス jp.hishidama.html.lexer.token.Token から継承されたメソッド
getLine, getText
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TextToken

public TextToken()
コンストラクター.


TextToken

public TextToken(int size)
コンストラクター.

パラメータ:
size - 内部リストの初期サイズ
導入されたバージョン:
2009.02.21
メソッドの詳細

clone

public TextToken clone()
                throws CloneNotSupportedException
オーバーライド:
クラス ListToken 内の clone
例外:
CloneNotSupportedException
導入されたバージョン:
2009.02.07

add

public void add(WordAtom word)
文字列追加.

パラメータ:
word - 文字列

setText

public void setText(TextToken text)
文字列設定.

内部に保持しているリストを、渡されたテキスト内のリストに置き換える。

パラメータ:
text - テキスト