|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dods.dap.Server.ClauseFactory
public class ClauseFactory
Represents a source of Clause objects for the constraint expression parser. By inheriting from this class and overriding the "newX" methods, you can create a factory that provides your own Clause objects instead of the default ones. This custom factory can be given to the parser via the CEEvaluator interface.
CEEvaluator
Field Summary | |
---|---|
protected FunctionLibrary |
functionLibrary
|
Constructor Summary | |
---|---|
ClauseFactory()
Creates a new clause factory with a blank function library. |
|
ClauseFactory(FunctionLibrary functionLibrary)
Creates a clause factory which uses the specified function library. |
Method Summary | |
---|---|
TopLevelClause |
newBoolFunctionClause(String functionName,
List children)
Generates a clause which invokes a function that returns a boolean value. |
SubClause |
newBTFunctionClause(String functionName,
List children)
Generates a clause which invokes a function that returns a BaseType. |
SubClause |
newDereferenceClause(String url)
Generates a clause representing a remote value, referenced by a URL. |
TopLevelClause |
newRelOpClause(int operator,
SubClause lhs,
List rhs)
Generates a clause which which compares subclauses, using one of the relative operators supported by the Operator class. |
SubClause |
newValueClause(dods.dap.BaseType value,
boolean constant)
Generates a clause representing a simple value, such as "var1" or "19". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FunctionLibrary functionLibrary
Constructor Detail |
---|
public ClauseFactory()
FunctionLibrary
public ClauseFactory(FunctionLibrary functionLibrary)
functionLibrary
- The function library that will be used
when creating clauses that invoke server-side functions.Method Detail |
---|
public TopLevelClause newRelOpClause(int operator, SubClause lhs, List rhs) throws SDODSException
SDODSException
public TopLevelClause newBoolFunctionClause(String functionName, List children) throws SDODSException, dods.dap.NoSuchFunctionException
SDODSException
dods.dap.NoSuchFunctionException
BoolFunctionClause
public SubClause newValueClause(dods.dap.BaseType value, boolean constant) throws SDODSException
SDODSException
ValueClause
public SubClause newBTFunctionClause(String functionName, List children) throws SDODSException, dods.dap.NoSuchFunctionException
SDODSException
dods.dap.NoSuchFunctionException
BTFunctionClause
public SubClause newDereferenceClause(String url) throws SDODSException
SDODSException
DereferenceClause
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |