|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdods.dap.Server.AbstractClause
dods.dap.Server.RelOpClause
public class RelOpClause
Represents a clause which compares subclauses, using one of the relative operators supported by the Operator class.
Operator,
ClauseFactory| Field Summary | |
|---|---|
protected SubClause |
lhs
|
protected int |
operator
|
protected List |
rhs
|
protected boolean |
value
|
| Fields inherited from class dods.dap.Server.AbstractClause |
|---|
children, constant, defined |
| Constructor Summary | |
|---|---|
protected |
RelOpClause(int operator,
SubClause lhs,
List rhs)
Creates a new RelOpClause. |
| Method Summary | |
|---|---|
boolean |
evaluate()
Evaluates the clause, first calling evaluate() on any sub-clauses it contains. |
SubClause |
getLHS()
Returns a SubClause representing the right-hand side of the comparison. |
int |
getOperator()
Returns the type of comparison |
List |
getRHS()
Returns a list of SubClauses representing the right-hand side of the comparison. |
boolean |
getValue()
Returns the current value of the clause. |
String |
toString()
Prints the original string representation of this clause. |
| Methods inherited from class dods.dap.Server.AbstractClause |
|---|
getChildren, isConstant, isDefined |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface dods.dap.Server.Clause |
|---|
getChildren, isConstant, isDefined |
| Field Detail |
|---|
protected boolean value
protected int operator
protected SubClause lhs
protected List rhs
| Constructor Detail |
|---|
protected RelOpClause(int operator,
SubClause lhs,
List rhs)
throws SDODSException
operator - The operator invoked by the clauselhs - The left-hand side of the comparison.rhs - A list of SubClauses representing the right-hand side of the
comparison.
SDODSException - Thrown if the clause is constant, but
the attempt to evaluate it fails.| Method Detail |
|---|
public boolean getValue()
TopLevelClause
getValue in interface TopLevelClause
public boolean evaluate()
throws SDODSException
TopLevelClause
evaluate in interface TopLevelClauseSDODSException - Thrown if the evaluation fails for any reason.public SubClause getLHS()
public List getRHS()
public int getOperator()
ExprParserConstantspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||