org.apache.imperius.spl.core
Interface Expression


public interface Expression


Method Summary
 java.lang.Object evaluate()
          Evaluates the expression and return a result
 java.lang.String getReferenceTypeName()
          Applicable only in the case of complex return types provides the class name of the complex type
 TypeInfo getType()
          Get the return type of the expression
 boolean isArray()
          is true if the expression evaluates to an array
 java.lang.String toString()
          Provides a string representation of the expression
 boolean validate()
          Validate the expression for semantic correctness
 

Method Detail

evaluate

java.lang.Object evaluate()
                          throws SPLException
Evaluates the expression and return a result

Returns:
Throws:
SPLException

getType

TypeInfo getType()
                 throws SPLException
Get the return type of the expression

Returns:
Throws:
SPLException

validate

boolean validate()
                 throws SPLException
Validate the expression for semantic correctness

Returns:
Throws:
SPLException

toString

java.lang.String toString()
Provides a string representation of the expression

Overrides:
toString in class java.lang.Object
Returns:

isArray

boolean isArray()
is true if the expression evaluates to an array

Returns:

getReferenceTypeName

java.lang.String getReferenceTypeName()
                                      throws SPLException
Applicable only in the case of complex return types provides the class name of the complex type

Returns:
Throws:
SPLException