public interface SubClause extends Clause
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.
for more about the parsing of clauses.,
for an explanation of how Clauses are evaluated on
data.,
ClauseFactory| Modifier and Type | Method and Description |
|---|---|
dods.dap.BaseType |
evaluate()
Evaluates the clause, first calling evaluate() on any sub-clauses it
contains.
|
Clause |
getParent()
Returns the Clause which contains this subclause.
|
dods.dap.BaseType |
getValue()
Returns a BaseType containing the current value of the sub-clause.
|
void |
setParent(Clause parent)
Sets the parent of this subclause.
|
getChildren, isConstant, isDefinedClause getParent()
dods.dap.BaseType getValue()
dods.dap.BaseType evaluate()
throws SDODSException
SDODSException - Thrown if the evaluation fails for any reason.void setParent(Clause parent)