public class ClauseFactory
extends java.lang.Object
CEEvaluator| Modifier and Type | Field and Description |
|---|---|
protected FunctionLibrary |
functionLibrary |
| Constructor and Description |
|---|
ClauseFactory()
Creates a new clause factory with a blank function library.
|
ClauseFactory(FunctionLibrary functionLibrary)
Creates a clause factory which uses the specified function library.
|
| Modifier and Type | Method and Description |
|---|---|
TopLevelClause |
newBoolFunctionClause(java.lang.String functionName,
java.util.List children)
Generates a clause which invokes a function that returns a
boolean value.
|
SubClause |
newBTFunctionClause(java.lang.String functionName,
java.util.List children)
Generates a clause which invokes a function that returns a
BaseType.
|
SubClause |
newDereferenceClause(java.lang.String url)
Generates a clause representing a remote value, referenced by a URL.
|
TopLevelClause |
newRelOpClause(int operator,
SubClause lhs,
java.util.List rhs)
Generates a clause which which compares subclauses, using one of the
relative operators supported by the Operator class.
|
SubClause |
newValueClause(BaseType value,
boolean constant)
Generates a clause representing a simple value,
such as "var1" or "19".
|
protected FunctionLibrary functionLibrary
public ClauseFactory()
FunctionLibrarypublic ClauseFactory(FunctionLibrary functionLibrary)
functionLibrary - The function library that will be used
when creating clauses that invoke server-side functions.public TopLevelClause newRelOpClause(int operator, SubClause lhs, java.util.List rhs) throws DAP2ServerSideException
DAP2ServerSideExceptionpublic TopLevelClause newBoolFunctionClause(java.lang.String functionName, java.util.List children) throws DAP2ServerSideException, NoSuchFunctionException
DAP2ServerSideExceptionNoSuchFunctionExceptionBoolFunctionClausepublic SubClause newValueClause(BaseType value, boolean constant) throws DAP2ServerSideException
DAP2ServerSideExceptionValueClausepublic SubClause newBTFunctionClause(java.lang.String functionName, java.util.List children) throws DAP2ServerSideException, NoSuchFunctionException
DAP2ServerSideExceptionNoSuchFunctionExceptionBTFunctionClausepublic SubClause newDereferenceClause(java.lang.String url) throws DAP2ServerSideException
DAP2ServerSideExceptionDereferenceClause