Interface ExecEnv
- All Superinterfaces:
org.eclipse.emf.ecore.EObject
,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
ExecEnvImpl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes all registered input, in/out, and output models from thisExecEnv
.void
Deletes all elements in the deletion queue.findOperation
(Object context, String name) findOperation
(Object context, String name, Object parameterType) findOperation
(Object context, String name, Object[] parameterTypes) findStaticField
(Object context, String name) findStaticOperation
(Object context, String name) findStaticOperation
(Object context, String name, Object parameterType) findStaticOperation
(Object context, String name, Object[] parameterTypes) Finds the type for the given (meta-)modelName
andtypeName
.Returns the value of the 'Current Phase' attribute.getInoutModelOf
(org.eclipse.emf.ecore.EObject object) Returns the value of the 'Inout Models' attribute.getInputModelOf
(org.eclipse.emf.ecore.EObject object) Returns the value of the 'Input Models' attribute.Returns the JIT compiler instance for this execution environment.Returns the value of the 'Matches' reference.getMetaModel
(org.eclipse.emf.ecore.resource.Resource resource) getMetaModelID
(Metamodel metamodel) Returns the ID under whichmetamodel
is registered within thisExecEnv
.Returns the value of the 'Meta Models' attribute.getModelID
(Model model) Returns the ID under whichmodel
is registered within thisExecEnv
.getModelOf
(org.eclipse.emf.ecore.EObject object) Returns the value of the 'Modules' attribute.getOutputModelOf
(org.eclipse.emf.ecore.EObject object) Returns the value of the 'Output Models' attribute.getRules()
Returns all rules registered in thisExecEnv
.Returns the value of the 'Traces' reference.Returns the value of the 'Unique Results' attribute.boolean
Returnstrue
iff this execution environment has any registered fields with the givenname
.boolean
hasOperation
(String name, int argcount) Returnstrue
iff this execution environment has any registered operations with the givenname
andargcount
.boolean
hasStaticField
(String name) Returnstrue
iff this execution environment has any registered static fields with the givenname
.boolean
hasStaticOperation
(String name, int argcount) Returnstrue
iff this execution environment has any registered static operations with the givenname
andargcount
.boolean
Returns the value of the 'Jit Disabled' attribute.loadModule
(ModuleResolver resolver, String name) Loads the module with the givenname
and its imports closure into thisExecEnv
using theresolver
, and registers its contents for execution.loadModule
(ModuleResolver resolver, String name, boolean validate) Loads the module with the givenname
and its imports closure into thisExecEnv
using theresolver
, and registers its contents for execution.void
queueForAdd
(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject object, Object value, int index, StackFrame frame) Queues the given object and value for adding a value to the given feature.void
queueForAdd
(Field field, Object object, Object value, int index, StackFrame frame) Queues the given object and value for adding a value to the given feature.void
queueForDelete
(org.eclipse.emf.ecore.EObject element, StackFrame frame) Queueselement
for deletion.void
queueForRemap
(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, StackFrame frame) Queues the given source and target value for remapping.void
queueForRemove
(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject object, Object value, StackFrame frame) Queues the given object and value for removing a value from the given feature.void
queueForRemove
(Field field, Object object, Object value, StackFrame frame) Queues the given object and value for removing a value from the given feature.void
queueForSet
(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject object, Object value, StackFrame frame) Queues the given object and value for setting the given feature.void
queueForSet
(Field field, Object object, Object value, StackFrame frame) Queues the given object and value for setting the given field.void
queueXmiIDForAdd
(org.eclipse.emf.ecore.EObject object, Object value, int index, StackFrame frame) Queues the given object and value for adding to the XMI ID.void
queueXmiIDForRemove
(org.eclipse.emf.ecore.EObject object, Object value, StackFrame frame) Queues the given object and value for removing from the XMI ID.void
queueXmiIDForSet
(org.eclipse.emf.ecore.EObject object, Object value, StackFrame frame) Queues the given object and value for setting the XMI ID.void
registerInOutModel
(String name, Model model) Registersmodel
as an in/out model undername
.void
registerInputModel
(String name, Model model) Registersmodel
as an input model undername
.void
registerMetaModel
(String name, Metamodel metamodel) Registersmetamodel
undername
.void
registerOutputModel
(String name, Model model) Registersmodel
as an output model undername
.void
Processes all element in the "remap" queue.run
(TimingData timingData) Executes the loaded modules and returns the execution result.void
setJitDisabled
(boolean value) Sets the value of the 'Jit Disabled
' attribute.void
setMonitor
(VMMonitor monitor) void
setQueue()
Processes all elements in the "set" queue.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getModules
Returns the value of the 'Modules' attribute.If the meaning of the 'Modules' reference list isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Modules' attribute.
- See Also:
-
getMatches
TraceLinkSet getMatches()Returns the value of the 'Matches' reference.If the meaning of the 'Matches' reference isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Matches' reference.
- See Also:
-
getTraces
TraceLinkSet getTraces()Returns the value of the 'Traces' reference.If the meaning of the 'Traces' reference isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Traces' reference.
- See Also:
-
getUniqueResults
Returns the value of the 'Unique Results' attribute.If the meaning of the 'Unique Results' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Unique Results' attribute.
- See Also:
-
isJitDisabled
boolean isJitDisabled()Returns the value of the 'Jit Disabled' attribute.If the meaning of the 'Jit Disabled' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Jit Disabled' attribute.
- See Also:
-
setJitDisabled
void setJitDisabled(boolean value) Sets the value of the 'Jit Disabled
' attribute.- Parameters:
value
- the new value of the 'Jit Disabled' attribute.- See Also:
-
getCurrentPhase
RuleMode getCurrentPhase()Returns the value of the 'Current Phase' attribute. The default value is"manual"
. The literals are from the enumerationRuleMode
.If the meaning of the 'Current Phase' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Current Phase' attribute.
- See Also:
-
getMonitor
VMMonitor getMonitor()Returns the
VMMonitor
for the currently running VM instance.- Returns:
- the
VMMonitor
for the currently running VM instance. - See Also:
-
-
setMonitor
-
registerMetaModel
Registersmetamodel
undername
.- Parameters:
name
- the name under which to registermetamodel
- the metamodel to register
-
registerInputModel
Registersmodel
as an input model undername
.- Parameters:
name
- the name under which to registermodel
- the model to register
-
registerInOutModel
Registersmodel
as an in/out model undername
.- Parameters:
name
- the name under which to registermodel
- the model to register
-
registerOutputModel
Registersmodel
as an output model undername
.- Parameters:
name
- the name under which to registermodel
- the model to register
-
clearModels
void clearModels()Removes all registered input, in/out, and output models from thisExecEnv
. -
getMetaModel
-
queueForSet
void queueForSet(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject object, Object value, StackFrame frame) Queues the given object and value for setting the given feature.- Parameters:
feature
- the feature to setobject
- the object for which to set the featurevalue
- the feature value to setframe
- the stack frame context in which to set the feature value
-
queueForSet
Queues the given object and value for setting the given field.- Parameters:
field
- the field to setobject
- the object for which to set the fieldvalue
- the field value to setframe
- the stack frame context in which to set the field value
-
queueXmiIDForSet
Queues the given object and value for setting the XMI ID.- Parameters:
object
- the object for which to set the fieldvalue
- the field value to setframe
- the stack frame context in which to set the field value
-
queueForAdd
void queueForAdd(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject object, Object value, int index, StackFrame frame) Queues the given object and value for adding a value to the given feature.- Parameters:
feature
- the feature to add toobject
- the object for which to add to the featurevalue
- the feature value to addindex
- the index at which to add, or-1
frame
- the stack frame context in which to add to the feature value
-
queueForAdd
Queues the given object and value for adding a value to the given feature.- Parameters:
field
- the field to add toobject
- the object for which to add to the fieldvalue
- the field value to addindex
- the index at which to add, or-1
frame
- the stack frame context in which to add to the field value
-
queueXmiIDForAdd
void queueXmiIDForAdd(org.eclipse.emf.ecore.EObject object, Object value, int index, StackFrame frame) Queues the given object and value for adding to the XMI ID.- Parameters:
object
- the object for which to add to the fieldvalue
- the field value to addindex
- the index at which to add, or-1
frame
- the stack frame context in which to add to the field value
-
queueForRemove
void queueForRemove(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject object, Object value, StackFrame frame) Queues the given object and value for removing a value from the given feature.- Parameters:
feature
- the feature to remove fromobject
- the object for which to remove from the featurevalue
- the feature value to removeframe
- the stack frame context in which to remove from the feature value
-
queueForRemove
Queues the given object and value for removing a value from the given feature.- Parameters:
field
- the field to remove fromobject
- the object for which to remove from the fieldvalue
- the field value to removeframe
- the stack frame context in which to remove from the field value
-
queueXmiIDForRemove
Queues the given object and value for removing from the XMI ID.- Parameters:
object
- the object for which to remove from the fieldvalue
- the field value to removeframe
- the stack frame context in which to remove from the field value
-
setQueue
void setQueue()Processes all elements in the "set" queue. Sets all queued features and fields, and clears the queue. -
queueForRemap
void queueForRemap(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, StackFrame frame) Queues the given source and target value for remapping.- Parameters:
source
- the source value to remaptarget
- the target value to map toframe
- the stack frame context in which to remap
-
remapQueue
void remapQueue()Processes all element in the "remap" queue. Remaps all queued source/target value pairs, and clears the queue. -
getMetaModels
Returns the value of the 'Meta Models' attribute. The default value is""
.If the meaning of the 'Meta Models' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Meta Models' attribute.
- See Also:
-
getInputModels
Returns the value of the 'Input Models' attribute. The default value is""
.If the meaning of the 'Input Models' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Input Models' attribute.
- See Also:
-
getInoutModels
Returns the value of the 'Inout Models' attribute. The default value is""
.If the meaning of the 'Inout Models' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Inout Models' attribute.
- See Also:
-
getOutputModels
Returns the value of the 'Output Models' attribute. The default value is""
.If the meaning of the 'Output Models' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Output Models' attribute.
- See Also:
-
loadModule
Loads the module with the givenname
and its imports closure into thisExecEnv
using theresolver
, and registers its contents for execution.- Parameters:
resolver
- the module file resolvername
- the module name- Returns:
- the loaded module
-
loadModule
Loads the module with the givenname
and its imports closure into thisExecEnv
using theresolver
, and registers its contents for execution.- Parameters:
resolver
- the module file resolvername
- the module namevalidate
- iftrue
, validates the loaded bytecode- Returns:
- the loaded module
-
findOperation
- Parameters:
context
- the context type of the operationname
- the operation nameparameterTypes
- the parameter types of the operation- Returns:
- the
Operation
with the given properties, ornull
if none registered
-
findOperation
- Parameters:
context
- the context type of the operationname
- the operation name- Returns:
- the
Operation
with the given properties, ornull
if none registered
-
findOperation
- Parameters:
context
- the context type of the operationname
- the operation nameparameterType
- the parameter type of the operation- Returns:
- the
Operation
with the given properties, ornull
if none registered
-
hasOperation
Returnstrue
iff this execution environment has any registered operations with the givenname
andargcount
.- Parameters:
name
- the operation nameargcount
- the number of operation arguments (excludingself
)- Returns:
true
iff this execution environment has any registered operations with the givenname
andargcount
-
findStaticOperation
- Parameters:
context
- the context type of the operationname
- the operation nameparameterTypes
- the parameter types of the operation- Returns:
- the static
Operation
with the given properties, ornull
if none registered
-
findStaticOperation
- Parameters:
context
- the context type of the operationname
- the operation name- Returns:
- the static
Operation
with the given properties, ornull
if none registered
-
findStaticOperation
- Parameters:
context
- the context type of the operationname
- the operation nameparameterType
- the parameter type of the operation- Returns:
- the static
Operation
with the given properties, ornull
if none registered
-
hasStaticOperation
Returnstrue
iff this execution environment has any registered static operations with the givenname
andargcount
.- Parameters:
name
- the operation nameargcount
- the number of operation arguments- Returns:
true
iff this execution environment has any registered static operations with the givenname
andargcount
-
findField
- Parameters:
context
- the context type of the fieldname
- the operation name- Returns:
- the
Field
with the given properties, ornull
if none registered
-
hasField
Returnstrue
iff this execution environment has any registered fields with the givenname
.- Parameters:
name
- the field name- Returns:
true
iff this execution environment has any registered fields with the givenname
-
findStaticField
- Parameters:
context
- the context type of the fieldname
- the operation name- Returns:
- the static
Field
with the given properties, ornull
if none registered
-
hasStaticField
Returnstrue
iff this execution environment has any registered static fields with the givenname
.- Parameters:
name
- the field name- Returns:
true
iff this execution environment has any registered static fields with the givenname
-
findRule
- Parameters:
name
- the rule name- Returns:
- the
Rule
with the given name, ornull
if none registered
-
findType
Finds the type for the given (meta-)modelName
andtypeName
.- Parameters:
modelName
- the name under which the metamodel that contains the type is registeredtypeName
- the type/metaclass name (may be fully qualified using '::
')- Returns:
- the type/metaclass
- Throws:
ClassNotFoundException
- if the type is not found
-
run
Executes the loaded modules and returns the execution result.- Parameters:
timingData
- the timing data object, ornull
- Returns:
- the execution result of the last loaded module's
main
operation
-
getRules
Returns all rules registered in thisExecEnv
.- Returns:
- all rules registered in this
ExecEnv
.
-
getModelOf
- Parameters:
object
- the object for which to look up the containing model- Returns:
- the
Model
that containsobject
, ornull
if not found.
-
getModelID
Returns the ID under whichmodel
is registered within thisExecEnv
. -
getMetaModelID
Returns the ID under whichmetamodel
is registered within thisExecEnv
. -
queueForDelete
Queueselement
for deletion.- Parameters:
element
- the element to deleteframe
- the stack frame context in which to perform the deletion
-
deleteQueue
void deleteQueue()Deletes all elements in the deletion queue. -
getInputModelOf
- Parameters:
object
- the object for which to look up the containing model- Returns:
- the input
Model
that containsobject
, ornull
if not found.
-
getInoutModelOf
- Parameters:
object
- the object for which to look up the containing model- Returns:
- the in/out
Model
that containsobject
, ornull
if not found.
-
getOutputModelOf
- Parameters:
object
- the object for which to look up the containing model- Returns:
- the output
Model
that containsobject
, ornull
if not found.
-
getJITCompiler
CodeBlockJIT getJITCompiler()Returns the JIT compiler instance for this execution environment.- Returns:
- the JIT compiler instance
-