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

Field Summary
 
Fields inherited from class com.glaivestone.javax.execution.AbstractEvaluableAction
CONTINUABLE_HANDLER, DEFAULT_HANDLER, EMPTY_ARGS, EMPTY_PARM_TYPES, PROPAGATING_HANDLER, TERMINATING_HANDLER
 
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 com.glaivestone.javax.execution.BlockContext
getName, getSelector, toString
 
Methods inherited from class com.glaivestone.javax.execution.AbstractEvaluableAction
evaluate, evaluate, getArguments, getNumberOfArguments, getOriginalException, getReceiver, setArguments, setExceptionHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoArgumentBlock

public NoArgumentBlock(java.lang.Object receiver,
                       java.lang.String name)
Method Detail

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[])

GFL 1.1 API