|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sintef.mofscript.runtime.RuleExecutor
public class RuleExecutor
The RuleExecutor executes the rules
Field Summary | |
---|---|
protected StatementBlock |
_aBlock
|
protected ExecutionEnvironment |
_env
|
protected static ExecutionManager |
_execMgr
|
protected java.util.Hashtable |
_referenceCache
|
protected TransformationRule |
_rule
|
protected java.lang.Object |
rule_return_value
|
Constructor Summary | |
---|---|
RuleExecutor(TransformationRule rule,
ExecutionManager execMgr)
Constructor |
Method Summary | |
---|---|
java.lang.Object |
executeRule()
pre condition: Rule is set and environment is set |
protected void |
finalize()
Clears the refrence cache |
ExecutionEnvironment |
getExecutionEnvironment()
|
static ExecutionManager |
getExecutionManager()
Gets the ExecutionManager |
static java.lang.String |
getObjectId(org.eclipse.emf.ecore.EObject obj)
|
java.util.Hashtable |
getReferenceCache()
Gets the Hashtable of cached refrences |
protected java.lang.Object |
getReturnObject(java.lang.String rule_return)
|
TransformationRule |
getRule()
|
java.lang.Object |
getRuleReturnValue()
|
StatementBlock |
getStatementBlock()
|
void |
setExecutionEnvironment(ExecutionEnvironment env)
|
void |
setRuleReturnValue(java.lang.Object value)
Sets the rule_return_value |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TransformationRule _rule
protected ExecutionEnvironment _env
protected static ExecutionManager _execMgr
protected java.lang.Object rule_return_value
protected java.util.Hashtable _referenceCache
protected StatementBlock _aBlock
Constructor Detail |
---|
public RuleExecutor(TransformationRule rule, ExecutionManager execMgr)
rule
- execMgr
- Method Detail |
---|
public static ExecutionManager getExecutionManager()
public java.util.Hashtable getReferenceCache()
public void setExecutionEnvironment(ExecutionEnvironment env)
env
- public ExecutionEnvironment getExecutionEnvironment()
public void setRuleReturnValue(java.lang.Object value)
value
- public java.lang.Object getRuleReturnValue()
public TransformationRule getRule()
public java.lang.Object executeRule() throws MofScriptExecutionException
MofScriptExecutionException
public static java.lang.String getObjectId(org.eclipse.emf.ecore.EObject obj)
protected java.lang.Object getReturnObject(java.lang.String rule_return)
rule_return
-
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public StatementBlock getStatementBlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |