java.lang.Object
org.yamcs.templating.TemplateParser
- All Implemented Interfaces:
TemplateParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.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
ConstructorsConstructorDescriptionTemplateParser(InputStream stream) Constructor with InputStream.TemplateParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingTemplateParser(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal TemplateBodybody()final voidDisable tracing.final voidEnable tracing.Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final Stringfinal IfStatementfinal TemplateBodyparse()voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final Statementfinal TextStatementfinal VarStatement
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
TemplateParser
Constructor with InputStream. -
TemplateParser
Constructor with InputStream and supplied encoding -
TemplateParser
Constructor. -
TemplateParser
Constructor with generated Token Manager.
-
-
Method Details
-
parse
- Throws:
ParseException
-
body
- Throws:
ParseException
-
statement
- Throws:
ParseException
-
varStatement
- Throws:
ParseException
-
identifier
- Throws:
ParseException
-
textStatement
- Throws:
ParseException
-
ifStatement
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-