Class JavaTokenizer
- java.lang.Object
-
- com.inductiveautomation.snap.parse.Tokenizer
-
- com.inductiveautomation.snap.javaparse.JavaTokenizer
-
public class JavaTokenizer extends Tokenizer
A tokenizer for Java input.
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.snap.parse.Tokenizer
_charIndex, _lineIndex, _lineStart
-
-
Constructor Summary
Constructors Constructor Description JavaTokenizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getMultiLineCommentToken(Token aSpclTkn)
Process and return a multi-line comment if next up in input.Token
getMultiLineCommentTokenMore(Token aSpclTkn)
Returns a token from the current char to multi-line comment termination or input end.Token
getNextSpecialToken()
Processes and returns next special token.Token
getNextSpecialTokenImpl(Token aSpclTkn)
Processes and returns next special token.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
-
-
-
-
Method Detail
-
getNextSpecialToken
public Token getNextSpecialToken()
Processes and returns next special token.- Overrides:
getNextSpecialToken
in classTokenizer
-
getNextSpecialTokenImpl
public Token getNextSpecialTokenImpl(Token aSpclTkn)
Processes and returns next special token.
-
getSingleLineCommentToken
public Token getSingleLineCommentToken(Token aSpclTkn)
Processes and returns a single line comment token if next up in input.
-
getMultiLineCommentToken
public Token getMultiLineCommentToken(Token aSpclTkn)
Process and return a multi-line comment if next up in input.
-
-