Class MultiLineToken
java.lang.Object
com.singularsys.jep.configurableparser.tokens.Token
com.singularsys.jep.configurableparser.tokens.MultiLineToken
- All Implemented Interfaces:
TokenMatcher
,Serializable
A token representing a token which spans multiple lines.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.singularsys.jep.configurableparser.tokens.Token
equals, getColumnNumber, getLength, getLineNumber, getSource, hashCode, isBinary, isComment, isFunction, isIdentifier, isImplicitMulRhs, isNumber, isOperator, isPrefix, isString, isSuffix, isSymbol, isTerminal, isTernary, isWhiteSpace, setPosition, toString
-
Constructor Details
-
MultiLineToken
-
-
Method Details
-
match
Matches the end of the token.- Specified by:
match
in interfaceTokenMatcher
- Parameters:
line
- the next line of input- Returns:
- token representing part of the current line matched, or null if the end of the token is not found.
- Throws:
ParseException
- on syntax error
-
append
-
getCompleteToken
A token representing the complete matched input.- Returns:
- the complete token
- Throws:
ParseException
-
init
Description copied from interface:TokenMatcher
Initialize the matcher when the Jep instance is known.- Specified by:
init
in interfaceTokenMatcher
- Parameters:
j
- Jep instance
-