|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstracts and represents instances for the evaluation proccess. Differences between objects of the model and predefined instances are hidden from the evaluation. The interface provides uniform means to access the runtime type, the value and defined properties of the instance.
Method Summary | |
Type |
getRuntimeType()
Returns the OCL runtime type of this instance. |
Instance |
getValue(Property attr)
Returns the value of an attribut of this instance. |
Instance |
invoke(Property op,
Instance[] args)
Invokes an operation on this instance. |
Instance |
navigate(Property assoc,
Instance[] qualifiers)
Navigates an association of this instance. |
Method Detail |
public Instance invoke(Property op, Instance[] args) throws FeatureInvocationException, UndefinedValueException
op
- the operation to invokeargs
- the arguments the operation is called with
FeatureInvocationException
- thrown if an exception occurs
during the property call.
UndefinedValueException
- thrown if the specified feature is
undefined on this instance.public Instance navigate(Property assoc, Instance[] qualifiers) throws FeatureInvocationException, UndefinedValueException
assoc
- the association to navigatequalifiers
- the evaluated denotation the navigation is
qualified with.
FeatureInvocationException
- thrown if an exception occurs
during the property call.
UndefinedValueException
- thrown if the specified feature is
undefined on this instance.public Instance getValue(Property attr) throws FeatureInvocationException, UndefinedValueException
attr
- the attribute to access
FeatureInvocationException
- thrown if an exception occurs
during the property call.
UndefinedValueException
- thrown if the specified feature is
undefined on this instance.public Type getRuntimeType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |