|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopendap.dap.Server.AbstractClause
opendap.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 BaseType |
value
|
| Fields inherited from class opendap.dap.Server.AbstractClause |
|---|
children, constant, defined |
| Constructor Summary | |
|---|---|
protected |
BTFunctionClause(BTFunction function,
java.util.List children)
Creates a new BTFunctionClause. |
| Method Summary | |
|---|---|
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. |
BaseType |
getValue()
Returns a BaseType containing the current value of the sub-clause. |
void |
setParent(Clause parent)
Sets the parent of this subclause. |
java.lang.String |
toString()
Prints the original string representation of this clause. |
| Methods inherited from class opendap.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 opendap.dap.Server.Clause |
|---|
getChildren, isConstant, isDefined |
| Field Detail |
|---|
protected Clause parent
protected BTFunction function
protected BaseType value
| Constructor Detail |
|---|
protected BTFunctionClause(BTFunction function,
java.util.List children)
throws DAP2ServerSideException
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.
DAP2ServerSideException - 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 BaseType getValue()
SubClause
getValue in interface SubClause
public BaseType evaluate()
throws DAP2ServerSideException
SubClause
evaluate in interface SubClauseDAP2ServerSideException - Thrown if the evaluation fails for any reason.public void setParent(Clause parent)
SubClause
setParent in interface SubClausepublic BTFunction getFunction()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||