Package org.javacc.utils
Class ConditionParser
java.lang.Object
org.javacc.utils.ConditionParser
- All Implemented Interfaces:
ConditionParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.javacc.utils.ConditionParserConstants
BANG, DEFAULT, EOF, FALSE, FORMAL_COMMENT, IDENTIFIER, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, LETTER, LPAREN, MULTI_LINE_COMMENT, PART_LETTER, RPAREN, SC_AND, SC_OR, SINGLE_LINE_COMMENT, tokenImage, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionConditionParser(InputStream stream) Constructor with InputStream.ConditionParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConditionParser(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanCompilationUnit(Map<String, Object> options) final booleanfinal booleanfinal voidDisable tracing.final voidEnable tracing.Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final booleanLiteral()static voidfinal booleanName()voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final booleanTrace enabled.final booleanfinal boolean
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
ConditionParser
Constructor with InputStream. -
ConditionParser
Constructor with InputStream and supplied encoding -
ConditionParser
Constructor. -
ConditionParser
Constructor with generated Token Manager.
-
-
Method Details
-
main
- Throws:
ParseException
-
CompilationUnit
- Throws:
ParseException
-
ConditionalExpression
- Throws:
ParseException
-
ConditionalAndExpression
- Throws:
ParseException
-
UnaryExpressionNotPlusMinus
- Throws:
ParseException
-
UnaryExpression
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
Name
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-