jp.hishidama.eval.lex.comment
クラス BlockComment

java.lang.Object
  上位を拡張 jp.hishidama.eval.lex.comment.CommentLex
      上位を拡張 jp.hishidama.eval.lex.comment.BlockComment

public class BlockComment
extends CommentLex

ブロックコメント解釈クラス.

ブロックコメント(例:/*〜*/)の開始・終了文字列を保持する。
ブロックコメントのネストは出来ない。

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

コンストラクタの概要
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
 

コンストラクタの詳細

BlockComment

public BlockComment(String top,
                    String end)
コンストラクター.

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

getEndString

public String getEndString()
終了文字列取得.

戻り値:
終了文字列

isEnd

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

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