jp.hishidama.eval.lex.comment
クラス LineComment
java.lang.Object
jp.hishidama.eval.lex.comment.CommentLex
jp.hishidama.eval.lex.comment.LineComment
public class LineComment
- extends CommentLex
行コメント解釈クラス.
行コメント(例://〜)の開始文字列を保持する。
- 導入されたバージョン:
- eval16
- 作成者:
- ひしだま
メソッドの概要 |
int |
isEnd(String string,
int pos)
終了文字列と一致しているか. |
LineComment
public LineComment(String top)
- コンストラクター.
- パラメータ:
top
- 開始文字列(null不可)
isEnd
public int isEnd(String string,
int pos)
- クラス
CommentLex
の記述:
- 終了文字列と一致しているか.
- 定義:
- クラス
CommentLex
内の isEnd
- パラメータ:
string
- 対象文字列pos
- 位置
- 戻り値:
- 0以上:一致している文字数、負:一致していない