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
作成者:
ひしだま

コンストラクタの概要
LineComment(String top)
          コンストラクター.
 
メソッドの概要
 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
 

コンストラクタの詳細

LineComment

public LineComment(String top)
コンストラクター.

パラメータ:
top - 開始文字列(null不可)
メソッドの詳細

isEnd

public int isEnd(String string,
                 int pos)
クラス CommentLex の記述:
終了文字列と一致しているか.

定義:
クラス CommentLex 内の isEnd
パラメータ:
string - 対象文字列
pos - 位置
戻り値:
0以上:一致している文字数、負:一致していない