|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.hishidama.eval.lex.comment.CommentLex jp.hishidama.eval.lex.comment.BlockComment
public class BlockComment
ブロックコメント解釈クラス.
ブロックコメント(例:/*〜*/)の開始・終了文字列を保持する。
ブロックコメントのネストは出来ない。
コンストラクタの概要 | |
---|---|
BlockComment(String top,
String end)
コンストラクター. |
メソッドの概要 | |
---|---|
String |
getEndString()
終了文字列取得. |
int |
isEnd(String string,
int pos)
終了文字列と一致しているか. |
クラス jp.hishidama.eval.lex.comment.CommentLex から継承されたメソッド |
---|
getTopString, isTop, skip, topLength |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public BlockComment(String top, String end)
top
- 開始文字列(null不可)end
- 終了文字列(null不可)メソッドの詳細 |
---|
public String getEndString()
public int isEnd(String string, int pos)
CommentLex
の記述:
CommentLex
内の isEnd
string
- 対象文字列pos
- 位置
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |