com.ibm.rational.rpe.common.data.expression
Interface IExpression

All Superinterfaces:
Visitable

public interface IExpression
extends Visitable

The common interface for all the values that are used in Rational Reporting for Document Generation (RRDG).


Method Summary
 void eval(com.ibm.rational.rpe.common.data.expression.IEvaluator evaluator)
          Evaluates the expression by using the provided evaluator.
 java.util.Set<java.lang.String> getProperties()
          Returns all the properties of this expression
 java.lang.String getProperty(java.lang.String key)
          Returns the value of the property with the given name
 java.lang.String getRepresentation(boolean flag)
          Returns a string representation of the current expression.
 com.ibm.rational.rpe.common.data.expression.ResultType getResultType()
          The result type of evaluating this expression.
 void setComponent(java.lang.String tag, java.lang.Object component)
          The method to use when fleshing out concrete expressions.
 void setProperty(java.lang.String key, java.lang.String value)
          Sets the key property of the expression to the value value
 
Methods inherited from interface com.ibm.rational.rpe.common.template.visitor.Visitable
visit
 

Method Detail

getResultType

com.ibm.rational.rpe.common.data.expression.ResultType getResultType()
The result type of evaluating this expression.


eval

void eval(com.ibm.rational.rpe.common.data.expression.IEvaluator evaluator)
Evaluates the expression by using the provided evaluator. The evaluation process follows the visitor pattern.


setComponent

void setComponent(java.lang.String tag,
                  java.lang.Object component)
The method to use when fleshing out concrete expressions. Sets the specified part of the expression, which is the tag, to the given value, which is the component.

Parameters:
tag -
component -

setProperty

void setProperty(java.lang.String key,
                 java.lang.String value)
Sets the key property of the expression to the value value

Parameters:
key -
value -

getProperty

java.lang.String getProperty(java.lang.String key)
Returns the value of the property with the given name

Parameters:
key -
Returns:

getProperties

java.util.Set<java.lang.String> getProperties()
Returns all the properties of this expression

Returns:

getRepresentation

java.lang.String getRepresentation(boolean flag)
Returns a string representation of the current expression. How the flag is interpreted is specific to each concrete instance.

Parameters:
flag -
Returns: