java.lang.Object
org.yamcs.templating.TemplateParserTokenManager
- All Implemented Interfaces:
TemplateParserConstants
Token Manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected charDebug output.protected SimpleCharStreamstatic final int[]Lex State array.static final String[]Token literal values.static final String[]Lexer state names.Fields inherited from interface org.yamcs.templating.TemplateParserConstants
CLOSE_IF_ELIF_TAG, CLOSE_TAG, CLOSE_VAR, DEFAULT, ELIF, ELSE, ENDIF, EOF, IN_COMMENT, IN_CONDITION, IN_VAR, OPEN_ELIF_TAG, OPEN_IF_TAG, OPEN_TAG, OPEN_VAR, PIPE, TEXT, tokenImage, VAR -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.TemplateParserTokenManager(SimpleCharStream stream, int lexState) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the next Token.protected TokenvoidReInit(SimpleCharStream stream) Reinitialise parser.voidReInit(SimpleCharStream stream, int lexState) Reinitialise parser.voidSet debug output.voidSwitchTo(int lexState) Switch to specified lex state.
-
Field Details
-
debugStream
Debug output. -
jjstrLiteralImages
Token literal values. -
lexStateNames
Lexer state names. -
jjnewLexState
public static final int[] jjnewLexStateLex State array. -
input_stream
-
curChar
protected char curChar
-
-
Constructor Details
-
TemplateParserTokenManager
Constructor. -
TemplateParserTokenManager
Constructor.
-
-
Method Details
-
setDebugStream
Set debug output. -
ReInit
Reinitialise parser. -
ReInit
Reinitialise parser. -
SwitchTo
public void SwitchTo(int lexState) Switch to specified lex state. -
jjFillToken
-
getNextToken
Get the next Token.
-