org.oclparser.internal.core.model
Class OclContext
java.lang.Object
org.oclparser.internal.core.model.OclElement
org.oclparser.internal.core.model.OclContext
- All Implemented Interfaces:
- IOclContext, IOclElement
- public class OclContext
- extends OclElement
- implements IOclContext
- Author:
- Stefan
|
Method Summary |
java.lang.String |
getMethodName()
Returns the method name. |
java.lang.String |
getTypeName()
Returns the type name. |
boolean |
isMethod()
Returns whether the context represents a method. |
boolean |
isType()
Returns whether the context represents a type. |
| 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 |
OclContext
public OclContext(java.lang.String name,
int line,
int column,
IOclElement parent)
- Parameters:
name - line - column - parent -
isMethod
public boolean isMethod()
- Description copied from interface:
IOclContext
- Returns whether the context represents a method.
- Specified by:
isMethod in interface IOclContext
isType
public boolean isType()
- Description copied from interface:
IOclContext
- Returns whether the context represents a type.
- Specified by:
isType in interface IOclContext
getTypeName
public java.lang.String getTypeName()
- Description copied from interface:
IOclContext
- Returns the type name.
- Specified by:
getTypeName in interface IOclContext
getMethodName
public java.lang.String getMethodName()
- Description copied from interface:
IOclContext
- Returns the method name.
- Specified by:
getMethodName in interface IOclContext