public class HopeParser extends Object implements HopeParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
HopeParserTokenManager |
token_source
Generated Token Manager.
|
AND, AND_COMBINER, ARRAY_END, ARRAY_NAME, ARRAY_START, BOOLEAN, CLOSE_BRACKET, COMMA, DEFAULT, EOF, EQUALS, FUNCTION_CALL, GREATER, GREATER_EQUALS, LESSER, LESSER_EQUALS, MATCHES, NOT, NOT_EQUALS, NUMBER, OPEN_BRACKET, OR, OR_COMBINER, PATH, PATH_VALUE, QUOTE, STRING, STRING_VALUE, tokenImage| Constructor and Description |
|---|
HopeParser(HopeParserTokenManager tm)
Constructor with generated Token Manager.
|
HopeParser(InputStream stream)
Constructor with InputStream.
|
HopeParser(InputStream stream,
Charset encoding)
Constructor with InputStream and supplied encoding
|
HopeParser(Reader stream)
Constructor with InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
io.appform.hope.core.values.ArrayValue |
ArrayRepr() |
io.appform.hope.core.Evaluatable |
BooleanOpsRepr() |
io.appform.hope.core.values.BooleanValue |
BooleanOrJsonPathRhsOperand() |
io.appform.hope.core.values.BooleanValue |
BooleanRepr() |
io.appform.hope.core.Evaluatable |
CombinerOpRepr() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
io.appform.hope.core.Evaluatable |
Expression() |
io.appform.hope.core.Evaluatable |
FunctionOpsRepr() |
io.appform.hope.core.values.FunctionValue |
FunctionRepr() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken() |
Token |
getToken(int index) |
io.appform.hope.core.Evaluatable |
JsonPathOpsRepr() |
io.appform.hope.core.values.JsonPathValue |
JsonPathRepr() |
io.appform.hope.core.Evaluatable |
NativeOperations() |
io.appform.hope.core.Evaluatable |
NumericalOpsRepr() |
io.appform.hope.core.values.NumericValue |
NumericOrJsonPathRhsOperand() |
io.appform.hope.core.values.NumericValue |
NumericRepr() |
io.appform.hope.core.Evaluatable |
parse(io.appform.hope.core.functions.FunctionRegistry functionRegistry) |
io.appform.hope.core.values.JsonPathValue |
PathOrEvaluatedPathRhsOperand() |
void |
ReInit(HopeParserTokenManager tm)
Reinitialise
|
void |
ReInit(InputStream stream)
Reinitialise
|
void |
ReInit(InputStream stream,
Charset encoding)
Reinitialise
|
void |
ReInit(Reader stream)
Reinitialise
|
io.appform.hope.core.Value |
RhsOperand() |
io.appform.hope.core.Evaluatable |
StringOpsRepr() |
io.appform.hope.core.values.StringValue |
StringOrJsonPathRhsOperand() |
io.appform.hope.core.values.StringValue |
StringRepr() |
boolean |
trace_enabled() |
io.appform.hope.core.Evaluatable |
UnaryOpRepr() |
public HopeParserTokenManager token_source
public Token token
public Token jj_nt
public HopeParser(InputStream stream)
stream - input streampublic HopeParser(InputStream stream, Charset encoding)
stream - input streamencoding - charset to be usedpublic HopeParser(Reader stream)
stream - char streampublic HopeParser(HopeParserTokenManager tm)
tm - Token manager to usepublic final io.appform.hope.core.Evaluatable parse(io.appform.hope.core.functions.FunctionRegistry functionRegistry)
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable CombinerOpRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable Expression()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable NativeOperations()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable UnaryOpRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable StringOpsRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable JsonPathOpsRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable FunctionOpsRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable BooleanOpsRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Evaluatable NumericalOpsRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.Value RhsOperand()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.FunctionValue FunctionRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.ArrayValue ArrayRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.JsonPathValue PathOrEvaluatedPathRhsOperand()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.StringValue StringOrJsonPathRhsOperand()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.NumericValue NumericOrJsonPathRhsOperand()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.BooleanValue BooleanOrJsonPathRhsOperand()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.StringValue StringRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.JsonPathValue JsonPathRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.NumericValue NumericRepr()
throws ParseException
ParseExceptionpublic final io.appform.hope.core.values.BooleanValue BooleanRepr()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
stream - input streampublic void ReInit(InputStream stream, Charset encoding)
stream - input streamencoding - charset to be usedpublic void ReInit(Reader stream)
stream - char streampublic void ReInit(HopeParserTokenManager tm)
tm - Token manager to usepublic final Token getNextToken()
public final Token getToken(int index)
index - index to be retrievedpublic ParseException generateParseException()
nullpublic final boolean trace_enabled()
false.public final void enable_tracing()
public final void disable_tracing()
Copyright © 2019. All rights reserved.