opendap.Server.parsers
Class Ceparse

java.lang.Object
  extended by opendap.Server.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!).

Author:
(ofExprParser.jj) jhrg, Dennis Heimbigner

Field Summary
protected  int cedebug
           
 
Fields inherited from interface opendap.Server.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
Ceparse()
          **********************************************
Ceparse(BaseTypeFactory factory)
           
 
Method Summary
 boolean constraint_expression(CEEvaluator ceEval, BaseTypeFactory factory, ClauseFactory clauseFactory)
          *********************
 AST getAST()
          **********************************************
 List<AST> getASTnodeset()
           
abstract  String getConstraint()
           
abstract  int getDebugLevel()
           
abstract  String getURL()
           
abstract  boolean parse()
          **********************************************
abstract  void setConstraint(String constraint)
           
abstract  void setDebugLevel(int level)
           
abstract  void setURL(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cedebug

protected int cedebug
Constructor Detail

Ceparse

public Ceparse()
**********************************************


Ceparse

public Ceparse(BaseTypeFactory factory)
Method Detail

parse

public abstract boolean parse()
                       throws ParseException
**********************************************

Throws:
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,
                                     BaseTypeFactory factory,
                                     ClauseFactory clauseFactory)
                              throws DAP2Exception,
                                     ParseException
*********************

Throws:
DAP2Exception
ParseException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.