|
|||||||||||
| 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 IOclElementpublic void setLine(int line)
setLine in interface IOclElementline - The start line to set.public int getLine()
getLine in interface IOclElementpublic void setColumn(int column)
setColumn in interface IOclElementcolumn - The start column to set.public int getColumn()
getColumn in interface IOclElementpublic void setEndLine(int endLine)
setEndLine in interface IOclElementendLine - The end line to set.public int getEndLine()
getEndLine in interface IOclElementpublic void setEndColumn(int endColumn)
setEndColumn in interface IOclElementendColumn - The end column to set.public int getEndColumn()
getEndColumn in interface IOclElementpublic int getLength()
getLength in interface IOclElementpublic IOclElement getParent()
getParent in interface IOclElementpublic void addChild(IOclElement elem)
IOclElement(Composite design pattern)
addChild in interface IOclElementpublic boolean hasChildren()
IOclElement(Composite design pattern)
hasChildren in interface IOclElementpublic IOclElement[] getChildren()
IOclElement(Composite design pattern)
getChildren in interface IOclElementpublic void accept(IOclModelVisitor visitor)
IOclElementvisit method is called with this
delta if applicable. If the visitor returns true,
the children are also visited.
(Visitor design pattern)
accept in interface IOclElementpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||