|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.AbstractEvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
org.eclipse.ocl.ecore.EcoreEvaluationEnvironment
org.eclipse.emf.ocl.internal.parser.CompatibilityEvaluationEnvironment
public class CompatibilityEvaluationEnvironment
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.ocl.EvaluationEnvironment |
---|
EvaluationEnvironment.Enumerations<EL> |
Method Summary | |
---|---|
void |
add(String name,
Object value)
Adds the supplied name and value binding to the environment |
Object |
callOperation(EOperation operation,
int opcode,
Object source,
Object[] args)
Implements the inherited method by attempting to find an appropriate Java method in the actual type of the source object and invoking it. |
void |
clear()
Clears the environment of variables. |
Object |
getValueOf(String name)
Returns the value associated with the supplied name |
boolean |
overrides(EOperation operation,
int opcode)
By default, a subclass will not support overriding the operations defined by the OCL Standard Library. |
Object |
remove(String name)
Removes the supplied name and binding from the environment (if it exists) and returns it. |
void |
replace(String name,
Object value)
Replaces the current value of the supplied name with the supplied value. |
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 |
---|
basicGetOptions, clearOptions, getAdapter, getOptions, getParent, getValue, isEnabled, putOptions, removeOption, removeOptions, setOption, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Object getValueOf(String name)
AbstractEvaluationEnvironment
getValueOf
in interface EvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
getValueOf
in class AbstractEvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
name
- the name whose value is to be returned
public void add(String name, Object value)
AbstractEvaluationEnvironment
add
in interface EvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
add
in class AbstractEvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
name
- the name to addvalue
- the associated bindingEvaluationEnvironment.replace(String, Object)
public void replace(String name, Object value)
AbstractEvaluationEnvironment
replace
in interface EvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
replace
in class AbstractEvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
name
- the namevalue
- the new valuepublic Object remove(String name)
AbstractEvaluationEnvironment
remove
in interface EvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
remove
in class AbstractEvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
name
- the name to remove
public void clear()
AbstractEvaluationEnvironment
clear
in interface EvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
clear
in class AbstractEvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
public boolean overrides(EOperation operation, int opcode)
AbstractEvaluationEnvironment
false
.
overrides
in interface EvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
overrides
in class AbstractEvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
operation
- an OCL operationopcode
- the operation code, if one of the operations pre-defined
by OCL. Otherwise, -1
true
if this evaluation environment provides an
implementation of this operation
; false
,
otherwiseEvaluationEnvironment.callOperation(O, int, java.lang.Object, java.lang.Object[])
public Object callOperation(EOperation operation, int opcode, Object source, Object[] args) throws IllegalArgumentException
AbstractEvaluationEnvironment
callOperation
in interface EvaluationEnvironment<EClassifier,EOperation,EStructuralFeature,EClass,EObject>
callOperation
in class EcoreEvaluationEnvironment
operation
- the operation to invokeopcode
- the operation code, if this is an OCL Standard Library
operation (which this environment overrides)source
- the source element on which the operation is invokedargs
- the arguments, or an empty array if none
IllegalArgumentException
- if the operation is not supported
by this environment
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |