public class IntegerExpression extends java.lang.Object implements Resolvable
Resolvable
runtime expression
which must return an integer
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 |
---|
IntegerExpression()
Default constructor.
|
IntegerExpression(Accessor value)
Create an instance that has a fixed (non-varying) value.
|
IntegerExpression(int value)
Create an instance that has a fixed (non-varying) value.
|
IntegerExpression(integer value)
Create an instance that has a fixed (non-varying) value.
|
Modifier and Type | Method and Description |
---|---|
integer |
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 IntegerExpression()
public IntegerExpression(Accessor value)
value
- The fixed value for this instance.public IntegerExpression(integer value)
value
- The fixed value for this instance.public IntegerExpression(int value)
value
- The fixed value for this instance.public final BaseDataType resolve()
resolve
in interface Resolvable
public final java.lang.Class getType()
getType
in interface Resolvable
BaseDataType
.public integer execute()
integer
.