|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.hishidama.eval.lex.Lex
public class Lex
字句解析クラス.
文字列の解析中の位置を保持する。
フィールドの概要 | |
---|---|
static int |
TYPE_CHAR
解釈タイプ:識別子(文字). |
static int |
TYPE_EOF
解釈タイプ:解釈終了. |
static int |
TYPE_ERR
解釈タイプ:エラー. |
static int |
TYPE_NUM
解釈タイプ:識別子(数値). |
static int |
TYPE_OPE
解釈タイプ:演算子. |
static int |
TYPE_STRING
解釈タイプ:識別子(文字列). |
static int |
TYPE_WORD
解釈タイプ:識別子. |
メソッドの概要 | |
---|---|
void |
check()
現在位置解釈. |
List<CommentLex> |
getCommentLexList()
コメント文字列一覧取得. |
String |
getOperator()
演算子取得. |
int |
getPos()
位置取得. |
ShareExpValue |
getShare()
Expression共有情報取得. |
String |
getString()
文字列取得. |
int |
getType()
タイプ取得. |
String |
getWord()
識別子取得. |
boolean |
isOperator(String ope)
演算子比較. |
Lex |
next()
次位置解釈. |
void |
setCommentLexList(List<CommentLex> list)
コメント文字列一覧設定. |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int TYPE_WORD
public static final int TYPE_NUM
public static final int TYPE_OPE
public static final int TYPE_STRING
public static final int TYPE_CHAR
public static final int TYPE_EOF
public static final int TYPE_ERR
メソッドの詳細 |
---|
public void setCommentLexList(List<CommentLex> list)
list
- コメント文字列一覧public List<CommentLex> getCommentLexList()
public void check()
現在の位置を解釈し、内部状態をセットする。
public Lex next()
次の位置へ移動し、解釈して内部状態をセットする。
public int getType()
public String getOperator()
タイプが演算子のときだけ有効。
public boolean isOperator(String ope)
ope
- 演算子
public String getWord()
public String getString()
解釈中の文字列全体を返す。
public int getPos()
public ShareExpValue getShare()
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |