public class MultiLineMatcher extends java.lang.Object implements TokenMatcher
MultiLineToken
,
Serialized FormConstructor and Description |
---|
MultiLineMatcher(TokenMatcher startMatcher,
TokenMatcher endMatcher,
TokenBuilder completeMatcher) |
Modifier and Type | Method and Description |
---|---|
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.
|
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.public Token match(java.lang.String s) throws ParseException
match
in interface TokenMatcher
s
- the string to match againstMultiLineToken
ParseException
- on syntax errorpublic void init(Jep j)
TokenMatcher
init
in interface TokenMatcher
j
- Jep instanceCopyright © 2018 Singular Systems http://www.singularsys.com/jep