ariba.util.expr
Class AribaExprEvaluator.Expression
java.lang.Object
ariba.util.fieldvalue.Expression
ariba.util.expr.AribaExprEvaluator.Expression
- Enclosing class:
- AribaExprEvaluator
public static class AribaExprEvaluator.Expression
- extends Expression
AribaExprEvaluator.Expression
public AribaExprEvaluator.Expression(Node node)
getRootNode
public Node getRootNode()
setSymbolTable
public void setSymbolTable(SymbolTable symbolTable)
getSymbolTable
public SymbolTable getSymbolTable()
getFieldsInExpr
public List getFieldsInExpr()
getMethodsInExpr
public List getMethodsInExpr()
isOnlyFieldInPath
public boolean isOnlyFieldInPath(String symbolName)
getAllPaths
public Set getAllPaths()
getSemanticRecordsInPath
public List getSemanticRecordsInPath(String path)
- Get all the semantic records for this path. The semantic records
contain parsed information about each element in the path. The
returned is ordered based on the position of the element in the
path. A path element can be a field or a method.
- Parameters:
path -
- Returns:
- list of records
getAllSemanticRecordsInPath
public List getAllSemanticRecordsInPath(String path)
getFieldsInPath
public List getFieldsInPath(String path)
evaluate
public Object evaluate(Object object,
FieldValue fieldValueProtocol)
throws ExpressionEvaluatorException
- Description copied from class:
Expression
- Evaluates
this against object using the
supplied fieldValueProtocol to object field values
from object during the evaluation. (Expressions may
refer to fields of the objects against which they are evaluated.)
- Specified by:
evaluate in class Expression
- Parameters:
object - the object against which to evaluate this;
may be null but in this case cannot have any fields
dereferenced against itfieldValueProtocol - the protocol to use to obtain field values from
object during the evaulation; may be null
in which case the default field value protocol for the class
of object is used (see FieldValue.get(Object))
- Throws:
ExpressionEvaluatorException
evaluate
public Object evaluate(Object object,
String expectedType,
FieldValue fieldValueProtocol)
throws ExpressionEvaluatorException
- Throws:
ExpressionEvaluatorException
evaluateSet
public void evaluateSet(Object object,
Object value,
FieldValue fieldValueProtocol)
throws ExpressionEvaluatorException
- Throws:
ExpressionEvaluatorException
getFieldPaths
public Collection getFieldPaths()
- Description copied from class:
Expression
- Returns the collection of fields paths referenced in this expression.
- Specified by:
getFieldPaths in class Expression
toString
public String toString()
- Description copied from class:
Expression
- Returns the
String representation of this.
The returned string should be the String that was
used when this was ExpressionEvaluator.compile(java.lang.String)
(ideally) or at least the string should be equivalent in the
sense that it would result in the creation of an identically behaving
expression.
- Specified by:
toString in class Expression
printExprTree
public void printExprTree()
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.