|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.AbstractEvaluationEnvironment<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject>
org.eclipse.ocl.ecore.EcoreEvaluationEnvironment
org.eclipse.mtl.engine.environment.MTLEvaluationEnvironment
public class MTLEvaluationEnvironment
This will allow us to accurately evaluate custom operations defined in the MTL standard library.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.ocl.EvaluationEnvironment |
|---|
org.eclipse.ocl.EvaluationEnvironment.Enumerations<EL> |
| Constructor Summary | |
|---|---|
MTLEvaluationEnvironment(org.eclipse.ocl.EvaluationEnvironment<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject> parent,
Module module)
This constructor is needed by the factory. |
|
MTLEvaluationEnvironment(Module module)
This constructor will create our environment given the module from which to resolve dependencies. |
|
| Method Summary | |
|---|---|
java.lang.Object |
callNonStandardOperation(org.eclipse.emf.ecore.EOperation operation,
java.lang.Object source,
java.lang.Object[] args)
The environment will delegate operation calls to this method if it needs to evaluate non-standard MTL operations. |
java.lang.Object |
callOperation(org.eclipse.emf.ecore.EOperation operation,
int opcode,
java.lang.Object source,
java.lang.Object[] args)
|
java.lang.Object |
callStandardOperation(org.eclipse.emf.ecore.EOperation operation,
java.lang.Object source,
java.lang.Object[] args)
The environment will delegate operation calls to this method if it needs to evaluate a standard MTL operation. |
java.util.List<Template> |
getAllCandidates(Module origin,
Template call,
java.util.List<java.lang.Object> arguments)
This will return the List of all applicable candidates for the given template call with the given arguments. |
Template |
getMostSpecificTemplate(java.util.List<Template> candidates,
java.util.List<java.lang.Object> arguments)
Returns the most specific template for the given arguments in the given list. |
| Methods inherited from class org.eclipse.ocl.ecore.EcoreEvaluationEnvironment |
|---|
createExtentMap, createTuple, getInvalidResult, getJavaMethodFor, getType, getValue, isKindOf, isTypeOf, navigateAssociationClass, navigateProperty |
| Methods inherited from class org.eclipse.ocl.AbstractEvaluationEnvironment |
|---|
add, basicGetOptions, clear, clearOptions, getAdapter, getOptions, getParent, getValue, getValueOf, isEnabled, overrides, putOptions, remove, removeOption, removeOptions, replace, setOption, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MTLEvaluationEnvironment(org.eclipse.ocl.EvaluationEnvironment<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject> parent,
Module module)
parent - Parent evaluation environment.module - We will resolve dependencies for this module and keep references to all accessible
templates.public MTLEvaluationEnvironment(Module module)
module - We will resolve dependencies for this module and keep references to all accessible
templates.| Method Detail |
|---|
public java.lang.Object callNonStandardOperation(org.eclipse.emf.ecore.EOperation operation,
java.lang.Object source,
java.lang.Object[] args)
operation - Operation which is to be evaluated.source - Source on which the operations is evaluated.args - Arguments of the call.
public java.lang.Object callOperation(org.eclipse.emf.ecore.EOperation operation,
int opcode,
java.lang.Object source,
java.lang.Object[] args)
callOperation in interface org.eclipse.ocl.EvaluationEnvironment<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject>callOperation in class org.eclipse.ocl.ecore.EcoreEvaluationEnvironmentEcoreEvaluationEnvironment.callOperation(org.eclipse.emf.ecore.EOperation,
int, java.lang.Object, java.lang.Object[])
public java.lang.Object callStandardOperation(org.eclipse.emf.ecore.EOperation operation,
java.lang.Object source,
java.lang.Object[] args)
operation - Operation which is to be evaluated.source - Source on which the operations is evaluated.args - Arguments of the call.
public java.util.List<Template> getAllCandidates(Module origin,
Template call,
java.util.List<java.lang.Object> arguments)
reorderCandidatesPriority(Module, Set).
origin - Origin of the template call.call - The called element.arguments - Arguments of the call.
public Template getMostSpecificTemplate(java.util.List<Template> candidates,
java.util.List<java.lang.Object> arguments)
candidates - List of templates candidates to be substituted.arguments - Arguments of the call.
arguments.
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||