|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.singularsys.jep.configurableparser.matchers.MultiLineMatcher
public class MultiLineMatcher
Matches tokens which span multiple lines of the input. The tokenizer matches the input a line at a time and subclasses of this can be used match tokens which span multiple lines.
MultiLineToken,
Serialized Form| Constructor Summary | |
|---|---|
MultiLineMatcher(TokenMatcher startMatcher,
TokenMatcher endMatcher,
TokenBuilder completeMatcher)
|
|
| Method Summary | |
|---|---|
void |
init(Jep j)
Initialize the matcher when the Jep instance is known. |
Token |
match(java.lang.String s)
Match the start of the token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiLineMatcher(TokenMatcher startMatcher,
TokenMatcher endMatcher,
TokenBuilder completeMatcher)
startMatcher - a matcher to match the start of the token.endMatcher - a matcher to match the end of the token.completeMatcher - a TokenBuilder which is used to produce the final token.| Method Detail |
|---|
public Token match(java.lang.String s)
match in interface TokenMatchers - the string to match against
MultiLineTokenpublic void init(Jep j)
TokenMatcher
init in interface TokenMatcher
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||