public interface ExpressionInterpreter
Modifier and Type | Method and Description |
---|---|
void |
addTokenToVectorExpressionTokens(java.util.Vector<ExpressionToken> tokVector,
TokenConstants tokenConstant,
java.lang.String value)
This methods adds an ExpressionToken to the given vector of expression tokens of type "tokenConstant" and value "value"
|
boolean |
evaluateExpression(java.lang.String expression,
int objectsNode)
This method evaluates the expression over the specified objects-context
|
void |
evaluateXPathAssignment(java.lang.String lhsexpression,
java.lang.String rhsexpression,
int objectsNode,
int metaObjectsNode)
This method evaluates the rhs expression and puts the value in the lhs expression over the specified objects-context
|
boolean |
evaluateXPathExpression(java.lang.String expression,
int objectsNode,
int metaObjectsNode)
This method evaluates the xpath expression over the specified objects-context
|
java.util.Vector<ExpressionToken> |
parseExpression(java.lang.String expression,
Document document)
This method is used to tokenize any expression i.e.
|
java.util.Vector<ExpressionToken> parseExpression(java.lang.String expression, Document document) throws LexicalException
expression
- - the expression to be tokenizeddocument
- - the document that is to be used to create elementVector
- - vector of ExpressionToken which has a type and a value associated with it.
If error occurs during tokenizing then null is returned.LexicalException
boolean evaluateExpression(java.lang.String expression, int objectsNode) throws ExpressionEvaluationException
EvalException
- if any error occurs dring native evaluationExpressionEvaluationException
boolean evaluateXPathExpression(java.lang.String expression, int objectsNode, int metaObjectsNode) throws ExpressionEvaluationException
EvalException
- if any error occurs dring native evaluationExpressionEvaluationException
void evaluateXPathAssignment(java.lang.String lhsexpression, java.lang.String rhsexpression, int objectsNode, int metaObjectsNode) throws ExpressionEvaluationException
RuleExecutionException
- if any error occurs dring native evaluationExpressionEvaluationException
void addTokenToVectorExpressionTokens(java.util.Vector<ExpressionToken> tokVector, TokenConstants tokenConstant, java.lang.String value)