org.oclparser.internal.core.model
Class OclPackage
java.lang.Object
org.oclparser.internal.core.model.OclElement
org.oclparser.internal.core.model.OclPackage
- All Implemented Interfaces:
- IOclElement, IOclPackage
- public class OclPackage
- extends OclElement
- implements IOclPackage
represents an OCL package.
Method Summary |
IOclContext |
getContext(java.lang.String typeName,
java.lang.String methodName)
Returns the context with the given typeName and methodName. |
Methods inherited from class org.oclparser.internal.core.model.OclElement |
accept, addChild, getChildren, getColumn, getEndColumn, getEndLine, getLength, getLine, getName, getParent, hasChildren, setColumn, setEndColumn, setEndLine, setLine, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ocleditor.parser.model.IOclElement |
accept, addChild, getChildren, getColumn, getEndColumn, getEndLine, getLength, getLine, getName, getParent, hasChildren, setColumn, setEndColumn, setEndLine, setLine |
OclPackage
public OclPackage(java.lang.String name,
int line,
int column,
IOclElement parent)
- Parameters:
name
- line
- column
- parent
-
getContext
public IOclContext getContext(java.lang.String typeName,
java.lang.String methodName)
- Description copied from interface:
IOclPackage
- Returns the context with the given typeName and methodName.
- Specified by:
getContext
in interface IOclPackage
- Parameters:
typeName
- name of the type (class/interface).methodName
- can be null if you only want to search for a type context.
- Returns:
null
if no context could be found.