public class LogicalExpression extends java.lang.Object implements Resolvable
Resolvable runtime expression
which must return a logical result. Subclasses need implement
only the execute() method.| Modifier and Type | Field and Description |
|---|---|
private Accessor |
value
Any fixed value for the expression or
null. |
| Constructor and Description |
|---|
LogicalExpression()
Default constructor.
|
LogicalExpression(Accessor value)
Create an instance that has a fixed (non-varying) value.
|
LogicalExpression(boolean value)
Create an instance that has a fixed (non-varying) value.
|
LogicalExpression(logical value)
Create an instance that has a fixed (non-varying) value.
|
| Modifier and Type | Method and Description |
|---|---|
logical |
execute()
Execute the underlying expression and get its result.
|
java.lang.Class |
getType()
Report the return type expected from executing the expression.
|
BaseDataType |
resolve()
Execute the underlying expression and get its result.
|
private Accessor value
null.public LogicalExpression()
public LogicalExpression(Accessor value)
value - The fixed value for this instance.public LogicalExpression(logical value)
value - The fixed value for this instance.public LogicalExpression(boolean value)
value - The fixed value for this instance.public final BaseDataType resolve()
resolve in interface Resolvablepublic final java.lang.Class getType()
getType in interface ResolvableBaseDataType.public logical execute()
logical.