org.oclparser.internal.core.model
Class OclContext

java.lang.Object
  extended byorg.oclparser.internal.core.model.OclElement
      extended byorg.oclparser.internal.core.model.OclContext
All Implemented Interfaces:
IOclContext, IOclElement

public class OclContext
extends OclElement
implements IOclContext

Author:
Stefan

Constructor Summary
OclContext(java.lang.String name, int line, int column, IOclElement parent)
           
 
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
 

Constructor Detail

OclContext

public OclContext(java.lang.String name,
                  int line,
                  int column,
                  IOclElement parent)
Parameters:
name -
line -
column -
parent -
Method Detail

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