Package opendap.servers.parsers
Class Ceparse
java.lang.Object
opendap.servers.parsers.Ceparse
- All Implemented Interfaces:
ExprParserConstants
- Direct Known Subclasses:
CeParser
The constraint expression parser class.
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!).
-
Field Summary
FieldsFields inherited from interface opendap.servers.parsers.ExprParserConstants
AMPERSAND, COLON, COMMA, DEFAULT, EOF, EQUAL, FLOATCONST, FUNCTION, GREATER, GREATER_EQL, INTCONST, LBRACE, LBRACKET, LESS, LESS_EQL, LPAREN, NOT_EQUAL, operatorImage, RBRACE, RBRACKET, REGEXP, RPAREN, SEPARATOR, STRINGCONST, tokenImage, VAR, WORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconstraint_expression(CEEvaluator ceEval, opendap.dap.BaseTypeFactory factory, ClauseFactory clauseFactory) *********************getAST()**********************************************abstract Stringabstract intabstract StringgetURL()abstract booleanparse()**********************************************abstract voidsetConstraint(String constraint) abstract voidsetDebugLevel(int level) abstract void
-
Field Details
-
log
public static org.slf4j.Logger log -
cedebug
protected int cedebug
-
-
Constructor Details
-
Ceparse
public Ceparse()********************************************** -
Ceparse
public Ceparse(opendap.dap.BaseTypeFactory factory)
-
-
Method Details
-
parse
public abstract boolean parse() throws opendap.dap.parsers.ParseException**********************************************- Throws:
opendap.dap.parsers.ParseException
-
getDebugLevel
public abstract int getDebugLevel() -
setDebugLevel
public abstract void setDebugLevel(int level) -
setURL
-
getURL
-
setConstraint
-
getConstraint
-
getAST
********************************************** -
getASTnodeset
-
constraint_expression
public boolean constraint_expression(CEEvaluator ceEval, opendap.dap.BaseTypeFactory factory, ClauseFactory clauseFactory) throws opendap.dap.DAP2Exception, opendap.dap.parsers.ParseException *********************- Throws:
opendap.dap.DAP2Exceptionopendap.dap.parsers.ParseException
-