org.argouml.profile.internal.ocl.uml14
Class OclAPIModelInterpreter
java.lang.Object
org.argouml.profile.internal.ocl.uml14.OclAPIModelInterpreter
- All Implemented Interfaces:
- ModelInterpreter
public class OclAPIModelInterpreter
- extends java.lang.Object
- implements ModelInterpreter
OCL API
|
Method Summary |
java.lang.Object |
getBuiltInSymbol(java.lang.String sym)
Looks for a built-in symbol. |
java.lang.Object |
invokeFeature(java.util.Map<java.lang.String,java.lang.Object> vt,
java.lang.Object subject,
java.lang.String feature,
java.lang.String type,
java.lang.Object[] parameters)
Actually interprets the feature and operations in the model |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OclAPIModelInterpreter
public OclAPIModelInterpreter()
invokeFeature
public java.lang.Object invokeFeature(java.util.Map<java.lang.String,java.lang.Object> vt,
java.lang.Object subject,
java.lang.String feature,
java.lang.String type,
java.lang.Object[] parameters)
- Description copied from interface:
ModelInterpreter
- Actually interprets the feature and operations in the model
- Specified by:
invokeFeature in interface ModelInterpreter
- Parameters:
vt - the variable tablesubject - the subject (the object from which the feature is
accessed)feature - the feature name (operation, attribute or collection
operation)type - the type of feature ("." for operations and attributes and
"->" for collection operations)parameters - the parameters for this invokation
- Returns:
- the return value
getBuiltInSymbol
public java.lang.Object getBuiltInSymbol(java.lang.String sym)
- Description copied from interface:
ModelInterpreter
- Looks for a built-in symbol. In the case that not all possible built-in
symbols are not in the variable table, the remaining ones should be
resolved using this method. This should be the case, e.g., for the names
of the UML metaclasses.
- Specified by:
getBuiltInSymbol in interface ModelInterpreter
- Parameters:
sym - the symbol name
- Returns:
- the symbol value, or null if the passed symbol is not built-in