|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oclparser.internal.core.model.OclElement
Is the base class for all OCL elements. Implements the Composite design pattern.
Constructor Summary | |
OclElement(java.lang.String name,
int line,
int column,
IOclElement parent)
|
Method Summary | |
void |
accept(IOclModelVisitor visitor)
Accepts the given visitor. |
void |
addChild(IOclElement elem)
Adds an OCL element as a child. |
IOclElement[] |
getChildren()
Returns the children that are also OCL elements. |
int |
getColumn()
|
int |
getEndColumn()
|
int |
getEndLine()
|
int |
getLength()
|
int |
getLine()
|
java.lang.String |
getName()
|
IOclElement |
getParent()
|
boolean |
hasChildren()
Returns whether the OCL element has children. |
void |
setColumn(int column)
|
void |
setEndColumn(int endColumn)
|
void |
setEndLine(int endLine)
|
void |
setLine(int line)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OclElement(java.lang.String name, int line, int column, IOclElement parent)
name
- line
- column
- parent
- Method Detail |
public java.lang.String getName()
getName
in interface IOclElement
public void setLine(int line)
setLine
in interface IOclElement
line
- The start line to set.public int getLine()
getLine
in interface IOclElement
public void setColumn(int column)
setColumn
in interface IOclElement
column
- The start column to set.public int getColumn()
getColumn
in interface IOclElement
public void setEndLine(int endLine)
setEndLine
in interface IOclElement
endLine
- The end line to set.public int getEndLine()
getEndLine
in interface IOclElement
public void setEndColumn(int endColumn)
setEndColumn
in interface IOclElement
endColumn
- The end column to set.public int getEndColumn()
getEndColumn
in interface IOclElement
public int getLength()
getLength
in interface IOclElement
public IOclElement getParent()
getParent
in interface IOclElement
public void addChild(IOclElement elem)
IOclElement
(Composite design pattern)
addChild
in interface IOclElement
public boolean hasChildren()
IOclElement
(Composite design pattern)
hasChildren
in interface IOclElement
public IOclElement[] getChildren()
IOclElement
(Composite design pattern)
getChildren
in interface IOclElement
public void accept(IOclModelVisitor visitor)
IOclElement
visit
method is called with this
delta if applicable. If the visitor returns true
,
the children are also visited.
(Visitor design pattern)
accept
in interface IOclElement
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |