|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance
Represents instances of OCL predefined types.
| Constructor Summary | |
PredefinedInstance(Type type,
java.lang.Object representation)
Constructs a predefined OCL instance. |
|
| Method Summary | |
java.lang.Object |
getRepresentation()
Returns the Java representation of this instance. |
Type |
getRuntimeType()
Returns the OCL runtime type of this instance. |
Instance |
getValue(Property attr)
Returns the value of an attribut of this instance. |
int |
hashCode()
|
Instance |
invoke(Property operation,
Instance[] args)
Invokes an operation on this instance. |
Instance |
navigate(Property assoc,
Instance[] qualifiers)
Navigates an association of this instance. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PredefinedInstance(Type type,
java.lang.Object representation)
type - the OCL runtime type of the predefined instancerepresentation - the Java representation of the instance.| Method Detail |
public java.lang.Object getRepresentation()
public java.lang.String toString()
toString in class java.lang.Objectpublic Type getRuntimeType()
Instance
getRuntimeType in interface Instance
public Instance getValue(Property attr)
throws FeatureInvocationException,
UndefinedValueException
Instance
getValue in interface Instanceattr - the attribute to access
UndefinedValueException - thrown if the specified feature is
undefined on this instance.
FeatureInvocationException - thrown if an exception occurs
during the property call.
public Instance invoke(Property operation,
Instance[] args)
throws FeatureInvocationException,
UndefinedValueException
Instance
invoke in interface Instanceoperation - the operation to invokeargs - the arguments the operation is called with
UndefinedValueException - thrown if the specified feature is
undefined on this instance.
FeatureInvocationException - thrown if an exception occurs
during the property call.
public Instance navigate(Property assoc,
Instance[] qualifiers)
throws FeatureInvocationException,
UndefinedValueException
Instance
navigate in interface Instanceassoc - 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 int hashCode()
hashCode in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||