|
||||||||||
| 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.BTFunctionClause
public class BTFunctionClause
Represents a clause which invokes a function that returns a BaseType.
ClauseFactory| Field Summary | |
|---|---|
protected BTFunction |
function
|
protected Clause |
parent
|
protected dods.dap.BaseType |
value
|
| Fields inherited from class dods.dap.Server.AbstractClause |
|---|
children, constant, defined |
| Constructor Summary | |
|---|---|
protected |
BTFunctionClause(BTFunction function,
List children)
Creates a new BTFunctionClause. |
| Method Summary | |
|---|---|
dods.dap.BaseType |
evaluate()
Evaluates the clause, first calling evaluate() on any sub-clauses it contains. |
BTFunction |
getFunction()
Returns the server-side function invoked by this clause |
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. |
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 Clause parent
protected BTFunction function
protected dods.dap.BaseType value
| Constructor Detail |
|---|
protected BTFunctionClause(BTFunction function,
List children)
throws SDODSException
function - The function invoked by the clausechildren - A list of SubClauses, to be given as arguments
to the function. If all the arguments are constant, the function
clause will be flagged as constant, and evaluated immediately.
SDODSException - Thrown if either 1) the function does not
accept the arguments given, or 2) the
clause is constant, and the attempt to evaluate it fails.| Method Detail |
|---|
public Clause getParent()
SubClause
getParent in interface SubClausepublic dods.dap.BaseType getValue()
SubClause
getValue in interface SubClause
public dods.dap.BaseType evaluate()
throws SDODSException
SubClause
evaluate in interface SubClauseSDODSException - Thrown if the evaluation fails for any reason.public void setParent(Clause parent)
SubClause
setParent in interface SubClausepublic BTFunction getFunction()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||