jp.hishidama.html.lexer.rule
クラス ValueRule

java.lang.Object
  上位を拡張 jp.hishidama.html.lexer.rule.HtLexerRule
      上位を拡張 jp.hishidama.html.lexer.rule.ValueRule

public class ValueRule
extends HtLexerRule

HtHtmlLexerルール(値).

値(クォーテーションで囲まれている文字列と囲まれていない文字列)の解釈を行う。

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

メソッドの概要
 ValueToken parse()
          ルールに従った解釈を行う。
 ValueToken parseAll(String quote1, String quote2)
          属性値解釈.
 
クラス jp.hishidama.html.lexer.rule.HtLexerRule から継承されたメソッド
skipSpace
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

parse

public ValueToken parse()
                 throws IOException
クラス HtLexerRule の記述:
ルールに従った解釈を行う。

定義:
クラス HtLexerRule 内の parse
戻り値:
トークン
例外:
IOException

parseAll

public ValueToken parseAll(String quote1,
                           String quote2)
                    throws IOException
属性値解釈.

文字列が全て属性値であるものとして解釈を行う。
属性値を囲むクォーテーションは引数で渡す為、文字列内部にダブルクォーテーション・シングルクォーテーションがあっても属性値の一部となる。

パラメータ:
quote1 - 先頭クォーテーション
quote2 - 末尾クォーテーション
戻り値:
値トークン
例外:
IOException