com.jscape.util.workflow
Class AssignmentExpression

java.lang.Object
  extended by com.jscape.util.workflow.AssignmentExpression
All Implemented Interfaces:
Expression

public final class AssignmentExpression
extends java.lang.Object
implements Expression

Assignment expression. Assigns an expression value to specified variable.

Author:
Alex

Constructor Summary
AssignmentExpression()
          Creates a new expression instance.
AssignmentExpression(Variable variable, Expression expression)
          Creates a new expression instance.
 
Method Summary
 java.lang.Object compute(Context context)
          Computes expression value.
 Expression getExpression()
          Returns an expression to assign.
 Variable getVariable()
          Returns a target expression variable.
 void setExpression(Expression value)
          Sets an expression to assign.
 void setVariable(Variable value)
          Sets target expression variable.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssignmentExpression

public AssignmentExpression(Variable variable,
                            Expression expression)
Creates a new expression instance.

Parameters:
variable - variable
expression - expression to assign

AssignmentExpression

public AssignmentExpression()
Creates a new expression instance.

Method Detail

getVariable

public Variable getVariable()
Returns a target expression variable.

Returns:
a target expression variable

setVariable

public void setVariable(Variable value)
Sets target expression variable.

Parameters:
value - a new variable

getExpression

public Expression getExpression()
Returns an expression to assign.

Returns:
an expression to assign

setExpression

public void setExpression(Expression value)
Sets an expression to assign.

Parameters:
value - a new expression to assign

compute

public java.lang.Object compute(Context context)
Description copied from interface: Expression
Computes expression value.

Specified by:
compute in interface Expression
Parameters:
context - the workflow context
Returns:
computed value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 JSCAPE Corp. All Rights Reserved.