|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubClause
Represents a sub-clause of the selection portion of a constraint expression. A sub-clause is any part of a constraint that can be evaluated to a BaseType value. For instance, the constraint "var1>=function(var2,var3)" would have sub clauses "var1" and "function(var2,var3)". The latter would in turn have the sub-clauses "var2" and "var3".
A given instance of SubClause may change the value it returns when evaluated multiple times, but should not change the class of BaseType it returns. This allows function and operator clauses to do type-checking using the getValue() method. The parser supports several kinds of sub-clause. These are described in the ClauseFactory interface.
See TopLevelClause
for more about the parsing of clauses.
See CEEValuator
for an explanation of how Clauses
are evaluated on data.
TopLevelClause
,
CEEvaluator
,
ClauseFactory
Method Summary | |
---|---|
BaseType |
evaluate()
Evaluates the clause, first calling evaluate() on any sub-clauses it contains. |
Clause |
getParent()
Returns the Clause which contains this subclause. |
BaseType |
getValue()
Returns a BaseType containing the current value of the sub-clause. |
void |
setParent(Clause parent)
Sets the parent of this subclause. |
Methods inherited from interface opendap.dap.Server.Clause |
---|
getChildren, isConstant, isDefined |
Method Detail |
---|
Clause getParent()
BaseType getValue()
BaseType evaluate() throws DAP2ServerSideException
DAP2ServerSideException
- Thrown if the evaluation fails for any reason.void setParent(Clause parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |