|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher
com.singularsys.jep.configurableparser.matchers.CommentTokenMatcher
public class CommentTokenMatcher
Matches various styles of comments.
| Constructor Summary | |
|---|---|
CommentTokenMatcher(java.util.regex.Pattern pattern)
|
|
CommentTokenMatcher(java.lang.String regex)
|
|
| Method Summary | |
|---|---|
Token |
buildToken(java.lang.String s)
Builds a token following a successful match. |
static CommentTokenMatcher |
hashCommentMatcher()
|
void |
init(Jep j)
Initialize the matcher when the Jep instance is known. |
static MultiLineMatcher |
multiLineSlashStarCommentMatcher()
Recognize comments of the form /* ... |
static CommentTokenMatcher |
slashSlashCommentMatcher()
Recognize comments of the form /// ... |
static CommentTokenMatcher |
slashStarCommentMatcher()
Recognize comments of the form /* ... |
| Methods inherited from class com.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher |
|---|
match |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommentTokenMatcher(java.lang.String regex)
public CommentTokenMatcher(java.util.regex.Pattern pattern)
| Method Detail |
|---|
public Token buildToken(java.lang.String s)
RegExpTokenMatcher
buildToken in interface TokenBuilderbuildToken in class RegExpTokenMatchers - String representing the completed matched token
public static CommentTokenMatcher slashStarCommentMatcher()
public static MultiLineMatcher multiLineSlashStarCommentMatcher()
public static CommentTokenMatcher slashSlashCommentMatcher()
public static CommentTokenMatcher hashCommentMatcher()
public void init(Jep j)
TokenMatcher
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||