org.ow2.opensuit.cel
Interface IExpression

All Known Subinterfaces:
IExprNode
All Known Implementing Classes:
AstBinaryOperation, AstBoolean, AstBracket, AstChoice, AstComposite, AstDot, AstEval, AstFunction, AstIdentifier, AstInvocation, AstLiteral, AstMethod, AstNested, AstNode, AstNull, AstNumber, AstProperty, AstRightValue, AstString, AstText, AstUnaryOperation

public interface IExpression

This interface declare the available methods for an expression

Version:
1.0
Author:
Adrien Ruffie / Pierre Smeyers, http://opensuit.ow2.org/

Method Summary
 java.lang.String getExpressionString()
          Returns the expression string
 java.lang.reflect.Type getGenericType()
          Returns the expression generic type
 java.lang.Class<?> getType()
          Returns the expression type
 java.lang.String getValuePattern()
          Returns the string value pattern (regular expression).
 java.lang.Object invoke(IEvaluationContext iContext)
          Evaluates the expression.
 boolean isReadOnly()
          Returns true if the expression cannot be set
 boolean isStaticValue()
          Returns true if the expression has a static value (i.e. that does not depend on any evaluation context).
 void set(IEvaluationContext iContext, java.lang.Object iValue)
          Assigns a value to this expression (if no read only)
 

Method Detail

invoke

java.lang.Object invoke(IEvaluationContext iContext)
                        throws java.lang.Exception
Evaluates the expression.

Throws:
java.lang.Exception

getType

java.lang.Class<?> getType()
Returns the expression type


getGenericType

java.lang.reflect.Type getGenericType()
Returns the expression generic type


isReadOnly

boolean isReadOnly()
Returns true if the expression cannot be set

Returns:
boolean

isStaticValue

boolean isStaticValue()
Returns true if the expression has a static value (i.e. that does not depend on any evaluation context). In such a case, the invoke(...) method may be called with a null evaluation context.

Returns:
boolean

getValuePattern

java.lang.String getValuePattern()
Returns the string value pattern (regular expression).

Returns:
String

set

void set(IEvaluationContext iContext,
         java.lang.Object iValue)
         throws java.lang.Exception
Assigns a value to this expression (if no read only)

Throws:
java.lang.Exception

getExpressionString

java.lang.String getExpressionString()
Returns the expression string

Returns:
String


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.