com.jscape.util.workflow
Class ConstantExpression

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

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

Constant expression.

Author:
Alex

Constructor Summary
ConstantExpression()
          Creates a new expression instance.
ConstantExpression(java.lang.Object value)
          Creates a new expression instance.
 
Method Summary
 java.lang.Object compute(Context context)
          Computes expression value.
 java.lang.Object getValue()
          Returns expression value.
 void setValue(java.lang.Object value)
          Sets expression value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantExpression

public ConstantExpression(java.lang.Object value)
Creates a new expression instance.

Parameters:
value - an expression value

ConstantExpression

public ConstantExpression()
Creates a new expression instance.

Method Detail

getValue

public java.lang.Object getValue()
Returns expression value.

Returns:
expression value

setValue

public void setValue(java.lang.Object value)
Sets expression value.

Parameters:
value - the expression value

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.