|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sintef.mofscript.runtime.expression.ExpressionEvaluator
org.sintef.mofscript.runtime.expression.SimpleExpressionEvaluator
org.sintef.mofscript.runtime.expression.ReferenceEvaluator
public class ReferenceEvaluator
Handles the evaluation of refrences
| Field Summary |
|---|
| Fields inherited from class org.sintef.mofscript.runtime.expression.ExpressionEvaluator |
|---|
_env, _expression, _ownerRuleExecutor, _positionCounter, _referenceStringLength, _stringPosCounter |
| Constructor Summary | |
|---|---|
ReferenceEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
Constructor |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
evaluateSimple(java.lang.Object inputObject)
Evaluate the refrence |
void |
finalizeReferenceProcessing(java.lang.String referenceValue)
This method is meant to be overridden by a subclass, if any action is to be done when an variable is referenced |
protected java.lang.Object |
getObjectFeature(java.lang.Object input,
java.lang.String[] splitref,
java.lang.String refname,
int refLine)
Gets the value of the object feature e.g. someClass.self.name |
protected void |
handleObjectReference(org.eclipse.emf.ecore.EObject object,
java.lang.String refname,
java.lang.Object refValue)
This method is meant to be overridden by a subclass, if any action is to be done when an object is referenced |
protected java.lang.Object |
initializeVariable(java.lang.String type)
Initializes the variable according to the type given as parameter |
void |
setIsCachableReference(boolean isCachable)
Sets if this refrence expression is cachable |
| Methods inherited from class org.sintef.mofscript.runtime.expression.SimpleExpressionEvaluator |
|---|
checkAdditionalExpressionParts, evaluate, handleAdditionalFunction, handleStringFunction |
| Methods inherited from class org.sintef.mofscript.runtime.expression.ExpressionEvaluator |
|---|
evaluateExpression, resetPosisionCounter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReferenceEvaluator(Expression expression,
ExecutionEnvironment env,
RuleExecutor ownerRuleExecutor)
expression - The expression to be evaluatedenv - The ExecutionEnvironmentownerRuleExecutor - The rule that owns the expression| Method Detail |
|---|
public void setIsCachableReference(boolean isCachable)
isCachable -
protected java.lang.Object evaluateSimple(java.lang.Object inputObject)
throws MofScriptExecutionException
evaluateSimple in class SimpleExpressionEvaluatorinputObject -
MofScriptExecutionExceptionprotected java.lang.Object initializeVariable(java.lang.String type)
type -
protected java.lang.Object getObjectFeature(java.lang.Object input,
java.lang.String[] splitref,
java.lang.String refname,
int refLine)
input - The elementsplitref - self, namerefname - namerefLine -
protected void handleObjectReference(org.eclipse.emf.ecore.EObject object,
java.lang.String refname,
java.lang.Object refValue)
object - refname - public void finalizeReferenceProcessing(java.lang.String referenceValue)
object - refname -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||