Class Ceparse

java.lang.Object
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 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

      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()
      **********************************************
    • getASTnodeset

      public List<AST> 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.DAP2Exception
      opendap.dap.parsers.ParseException