org.oddjob.arooa.runtime
Interface ParsedExpression


public interface ParsedExpression

The result of parsing an expression with an ExpressionParser. A ParsedExpression is an intermediate step to being evaluated.

Author:
rob

Method Summary
<T> T
evaluateAsAttribute(ArooaSession session, Class<T> type)
          Evaluate the expression as an attribute.
 String evaluateAsText(ArooaSession session)
          Evaluate the expression as element text.
 boolean isConstantAttribute()
          Is the expression constant as an attribute.
 boolean isConstantText()
          Is the expression constant as element text.
 

Method Detail

evaluateAsAttribute

<T> T evaluateAsAttribute(ArooaSession session,
                          Class<T> type)
                      throws ArooaConversionException
Evaluate the expression as an attribute.

Parameters:
session -
Returns:
An object result. May be null.
Throws:
ArooaConversionException

evaluateAsText

String evaluateAsText(ArooaSession session)
                      throws ArooaConversionException
Evaluate the expression as element text.

Parameters:
session -
Returns:
text result. May be null.
Throws:
ArooaConversionException

isConstantAttribute

boolean isConstantAttribute()
Is the expression constant as an attribute.

Returns:
true/false.

isConstantText

boolean isConstantText()
Is the expression constant as element text.

Returns:
true/false.