public class ExprParser extends java.lang.Object implements ExprParserConstants
Because it only makes sense to evaluate CEs when serving data, the BaseTyeFactory must create instances of the SDtype classes, not the Dtype classes. The is because we use the setRead method of the class ServerMethods when creating constants (to ensure that the evaluator doesn't try to read tem from the dataset!).
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
ExprParserTokenManager |
token_source |
Constructor and Description |
---|
ExprParser(ExprParserTokenManager tm) |
ExprParser(java.io.InputStream stream) |
ExprParser(java.io.InputStream stream,
java.lang.String encoding) |
ExprParser(java.io.Reader stream) |
Modifier and Type | Method and Description |
---|---|
java.util.Vector |
arg_list() |
void |
array_index(int count,
ServerArrayMethods bt) |
Clause |
bool_function() |
Clause |
clause() |
java.util.Stack |
component(java.util.Stack components) |
BaseType |
constant() |
void |
constraint_expression(CEEvaluator ceEval,
BaseTypeFactory factory,
ClauseFactory clauseFactory)
This is the entry point for the Constraint expression parser.
|
void |
disable_tracing() |
void |
enable_tracing() |
java.lang.String |
field() |
ParseException |
generateParseException() |
Token |
getNextToken() |
Token |
getToken(int index) |
void |
proj_clause() |
void |
proj_variable() |
void |
projection() |
void |
ReInit(ExprParserTokenManager tm) |
void |
ReInit(java.io.InputStream stream) |
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding) |
void |
ReInit(java.io.Reader stream) |
int |
rel_op() |
void |
selection() |
SubClause |
value() |
public ExprParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public ExprParser(java.io.InputStream stream)
public ExprParser(java.io.InputStream stream, java.lang.String encoding)
public ExprParser(java.io.Reader stream)
public ExprParser(ExprParserTokenManager tm)
public final void constraint_expression(CEEvaluator ceEval, BaseTypeFactory factory, ClauseFactory clauseFactory) throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, DAP2Exception, InvalidParameterException, SBHException, WrongTypeException
Note that this method catches any ParserException and recasts it to a DAP2Exception after replacing all double quotes with single quotes.
ceEval
- A CEEvaluator instance where any select clauses will be
dumped and from which the DDS, which supplies the evaluation environment,
will be read.factory
- A BaseTypeFactory used to generate instances of variables
as needed (e.g., to hold values of constants).clauseFactory
- A ClauseFactory used to generate instances of each
type of clause.ParseException
NoSuchVariableException
NoSuchFunctionException
InvalidOperatorException
DAP2Exception
InvalidParameterException
SBHException
WrongTypeException
public final void selection() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, ParseException, SBHException, DAP2Exception
public final Clause clause() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, ParseException, DAP2Exception
public final Clause bool_function() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, ParseException, DAP2Exception
public final int rel_op() throws ParseException
ParseException
public final void projection() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, ParseException, InvalidParameterException, SBHException, WrongTypeException, DAP2Exception
public final void proj_clause() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, ParseException, InvalidParameterException, SBHException, WrongTypeException, DAP2Exception
public final void proj_variable() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, ParseException, InvalidParameterException, SBHException, WrongTypeException, DAP2Exception
public final java.util.Stack component(java.util.Stack components) throws ParseException, ParseException, DAP2Exception
ParseException
DAP2Exception
public final java.util.Vector arg_list() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, ParseException, DAP2Exception
public final void array_index(int count, ServerArrayMethods bt) throws ParseException, ParseException, DAP2Exception, InvalidParameterException, SBHException
public final SubClause value() throws ParseException, NoSuchVariableException, NoSuchFunctionException, InvalidOperatorException, DAP2Exception, ParseException
public final java.lang.String field() throws ParseException, ParseException
ParseException
public final BaseType constant() throws ParseException, DAP2Exception, ParseException
ParseException
DAP2Exception
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(ExprParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()