com.glaivestone.javax.execution
Class NoArgumentBlock
java.lang.Object
|
+--com.glaivestone.javax.execution.AbstractEvaluableAction
|
+--com.glaivestone.javax.execution.BlockContext
|
+--com.glaivestone.javax.execution.NoArgumentBlock
- All Implemented Interfaces:
- EvaluableAction
- public abstract class NoArgumentBlock
- extends BlockContext
An evaluable action expression with no arguments.
Typically used to create expressions as anonymous inner classes.
Subclasses must implement the no-argument evaluate
method.
- Author:
- Deb Lewis
Constructor Summary |
NoArgumentBlock(java.lang.Object receiver,
java.lang.String name)
|
Method Summary |
java.lang.Object |
evaluate()
Answer the result of evaluating the action |
java.lang.Object |
evaluate(java.lang.Object[] args)
Answer the result of evaluating the action with the given argument values. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NoArgumentBlock
public NoArgumentBlock(java.lang.Object receiver,
java.lang.String name)
evaluate
public java.lang.Object evaluate()
- Answer the result of evaluating the action
- Specified by:
evaluate
in interface EvaluableAction
- Overrides:
evaluate
in class AbstractEvaluableAction
- See Also:
EvaluableAction.evaluate()
evaluate
public java.lang.Object evaluate(java.lang.Object[] args)
- Answer the result of evaluating the action with the given argument values.
- Specified by:
evaluate
in interface EvaluableAction
- Specified by:
evaluate
in class AbstractEvaluableAction
- See Also:
EvaluableAction.evaluate(Object[])