Class Ceparse
- java.lang.Object
-
- thredds.server.opendap.servers.parsers.Ceparse
-
- All Implemented Interfaces:
ExprParserConstants
- Direct Known Subclasses:
CeParser
public abstract class Ceparse extends Object implements ExprParserConstants
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
Fields Modifier and Type Field Description protected intcedebugstatic org.slf4j.Loggerlog-
Fields inherited from interface thredds.server.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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanconstraint_expression(CEEvaluator ceEval, opendap.dap.BaseTypeFactory factory, ClauseFactory clauseFactory)*********************ASTgetAST()**********************************************List<AST>getASTnodeset()abstract StringgetConstraint()abstract intgetDebugLevel()abstract StringgetURL()abstract booleanparse()**********************************************abstract voidsetConstraint(String constraint)abstract voidsetDebugLevel(int level)abstract voidsetURL(String url)
-
-
-
Method Detail
-
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
public abstract void setURL(String url)
-
getURL
public abstract String getURL()
-
setConstraint
public abstract void setConstraint(String constraint)
-
getConstraint
public abstract String getConstraint()
-
getAST
public AST getAST()
**********************************************
-
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
-
-