Class JavaTokenizer
java.lang.Object
com.inductiveautomation.snap.parse.Tokenizer
com.inductiveautomation.snap.javaparse.JavaTokenizer
A tokenizer for Java input.
-
Field Summary
Fields inherited from class com.inductiveautomation.snap.parse.Tokenizer
_charIndex, _lineIndex, _lineStart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMultiLineCommentToken
(Token aSpclTkn) Process and return a multi-line comment if next up in input.getMultiLineCommentTokenMore
(Token aSpclTkn) Returns a token from the current char to multi-line comment termination or input end.Processes and returns next special token.getNextSpecialTokenImpl
(Token aSpclTkn) Processes and returns next special token.getSingleLineCommentToken
(Token aSpclTkn) Processes and returns a single line comment token if next up in input.Methods inherited from class com.inductiveautomation.snap.parse.Tokenizer
addPattern, addPatterns, charAt, createToken, getChar, getCharIndex, getColumnIndex, getColumnNumber, getInput, getInput, getLineIndex, getLineNumber, getLineStart, getMatchers, getNextToken, getRegexes, goobleWhiteSpace, length, setInput
-
Constructor Details
-
JavaTokenizer
public JavaTokenizer()
-
-
Method Details
-
getNextSpecialToken
Processes and returns next special token.- Overrides:
getNextSpecialToken
in classTokenizer
-
getNextSpecialTokenImpl
Processes and returns next special token. -
getSingleLineCommentToken
Processes and returns a single line comment token if next up in input. -
getMultiLineCommentToken
Process and return a multi-line comment if next up in input. -
getMultiLineCommentTokenMore
Returns a token from the current char to multi-line comment termination or input end.
-