com.glaivestone.javax.execution
Class OneArgumentBlock

java.lang.Object
  |
  +--com.glaivestone.javax.execution.AbstractEvaluableAction
        |
        +--com.glaivestone.javax.execution.BlockContext
              |
              +--com.glaivestone.javax.execution.OneArgumentBlock
All Implemented Interfaces:
EvaluableAction

public abstract class OneArgumentBlock
extends BlockContext

An evaluable action expression with one argument.

Typically used to create expressions as anonymous inner classes. Subclasses must implement the one-argument evaluateExpression(Object) 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
OneArgumentBlock(java.lang.Object receiver, java.lang.String name)
           
OneArgumentBlock(java.lang.Object receiver, java.lang.String name, java.lang.Object[] args)
           
 
Method Summary
 java.lang.Object evaluate(java.lang.Object anArg)
          Answer the result of evaluating the active with the given argument value.
 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

OneArgumentBlock

public OneArgumentBlock(java.lang.Object receiver,
                        java.lang.String name)

OneArgumentBlock

public OneArgumentBlock(java.lang.Object receiver,
                        java.lang.String name,
                        java.lang.Object[] args)
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.Object anArg)
Answer the result of evaluating the active with the given argument value.

Specified by:
evaluate in interface EvaluableAction
Overrides:
evaluate in class AbstractEvaluableAction
See Also:
EvaluableAction.evaluate(Object)

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