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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AribaExprEvaluator.Expression
public AribaExprEvaluator.Expression(Node node)
getRootNode
public Node getRootNode()
setSymbolTable
public void setSymbolTable(SymbolTable symbolTable)
getSymbolTable
public SymbolTable getSymbolTable()
getFieldsInExpr
public java.util.List getFieldsInExpr()
getMethodsInExpr
public java.util.List getMethodsInExpr()
isOnlyFieldInPath
public boolean isOnlyFieldInPath(java.lang.String symbolName)
getAllPaths
public java.util.Set getAllPaths()
getSemanticRecordsInPath
public java.util.List getSemanticRecordsInPath(java.lang.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 java.util.List getAllSemanticRecordsInPath(java.lang.String path)
getFieldsInPath
public java.util.List getFieldsInPath(java.lang.String path)
evaluate
public java.lang.Object evaluate(java.lang.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 java.lang.Object evaluate(java.lang.Object object,
java.lang.String expectedType,
FieldValue fieldValueProtocol)
throws ExpressionEvaluatorException
- Throws:
ExpressionEvaluatorException
evaluateSet
public void evaluateSet(java.lang.Object object,
java.lang.Object value,
FieldValue fieldValueProtocol)
throws ExpressionEvaluatorException
- Throws:
ExpressionEvaluatorException
getFieldPaths
public java.util.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 java.lang.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-2014 Ariba, Inc. All Rights Reserved.