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

java.lang.Object
  上位を拡張 jp.hishidama.html.lexer.token.Token
      上位を拡張 jp.hishidama.html.lexer.token.ListToken
          上位を拡張 jp.hishidama.html.lexer.token.ValueToken
すべての実装されたインタフェース:
Cloneable, Iterable<Token>

public class ValueToken
extends ListToken

HtHtmlLexerトークン(属性値).

属性値を保持するトークン。

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

コンストラクタの概要
ValueToken()
          コンストラクター.
 
メソッドの概要
 ValueToken clone()
           
 String getQuote1()
          クォーテーション取得.
 AtomToken getQuote1Atom()
          クォーテーション取得.
 String getQuote2()
          クォーテーション取得.
 AtomToken getQuote2Atom()
          クォーテーション取得.
 String getValue()
          値取得.
 String getValue(boolean quote)
          属性値取得.
 TextToken getValueToken()
          値取得.
 void setQuote1(String s)
          クォーテーション設定.
 void setQuote1(StringBuilder sb)
          クォーテーション設定.
 void setQuote1Atom(AtomToken atom)
          クォーテーション設定.
 void setQuote2(String s)
          クォーテーション設定.
 void setQuote2(StringBuilder sb)
          クォーテーション設定.
 void setQuote2Atom(AtomToken atom)
          クォーテーション設定.
 void setValue(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
 

コンストラクタの詳細

ValueToken

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

メソッドの詳細

clone

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

setQuote1

public void setQuote1(StringBuilder sb)
クォーテーション設定.

属性値の先頭のクォーテーション。

パラメータ:
sb - クォーテーション

setQuote1

public void setQuote1(String s)
クォーテーション設定.

属性値の先頭のクォーテーション。

パラメータ:
s - クォーテーション

setQuote1Atom

public void setQuote1Atom(AtomToken atom)
クォーテーション設定.

属性値の先頭のクォーテーション。

パラメータ:
atom - クォーテーション

setValue

public void setValue(TextToken text)
値設定.

パラメータ:
text - 値

setQuote2

public void setQuote2(StringBuilder sb)
クォーテーション設定.

属性値の末尾のクォーテーション。

パラメータ:
sb - クォーテーション

setQuote2

public void setQuote2(String s)
クォーテーション設定.

属性値の末尾のクォーテーション。

パラメータ:
s - クォーテーション

setQuote2Atom

public void setQuote2Atom(AtomToken atom)
クォーテーション設定.

属性値の末尾のクォーテーション。

パラメータ:
atom - クォーテーション

getQuote1

public String getQuote1()
クォーテーション取得.

属性値の先頭のクォーテーション。

戻り値:
クォーテーション(存在しない場合、null)

getQuote1Atom

public AtomToken getQuote1Atom()
クォーテーション取得.

属性値の先頭のクォーテーション。

戻り値:
クォーテーション(存在しない場合、null)

getValueToken

public TextToken getValueToken()
値取得.

戻り値:
値(存在しない場合、null)

getValue

public String getValue()
値取得.

クォーテーションは含まれない。

戻り値:
値(存在しない場合、null)

getValue

public String getValue(boolean quote)
属性値取得.

パラメータ:
quote - trueの場合、クォーテーションを含む。
戻り値:
値(存在しない場合、null)

getQuote2

public String getQuote2()
クォーテーション取得.

属性値の末尾のクォーテーション。

戻り値:
クォーテーション(存在しない場合、null)

getQuote2Atom

public AtomToken getQuote2Atom()
クォーテーション取得.

属性値の末尾のクォーテーション。

戻り値:
クォーテーション(存在しない場合、null)