public class MergePointStatement extends JavaStatement implements ExpressionContainer
| Modifier and Type | Field and Description |
|---|---|
protected Comment[] |
comments |
protected IProgramVariable |
identifier |
| Constructor and Description |
|---|
MergePointStatement(ExtList children) |
MergePointStatement(IProgramVariable indexPV) |
MergePointStatement(LocationVariable identifier,
Comment[] comments) |
| Modifier and Type | Method and Description |
|---|---|
ProgramElement |
getChildAt(int index)
Returns the child at the specified index in this node's "virtual" child
array
|
int |
getChildCount()
Returns the number of children of this node.
|
Comment[] |
getComments()
Get comments.
|
Expression |
getExpression()
Get expression.
|
Expression |
getExpressionAt(int index)
Return the expression at the specified index in this node's "virtual"
expression array.
|
int |
getExpressionCount()
Get the number of expressions in this container.
|
void |
prettyPrint(PrettyPrinter p)
Pretty printing the source element.
|
void |
visit(Visitor v)
calls the corresponding method of a visitor in order to perform some
action/transformation on this element
|
compatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildrenhashCode, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitmatchequalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getPositionInfo, getRelativePosition, getStartPositionprotected final IProgramVariable identifier
protected final Comment[] comments
public MergePointStatement(IProgramVariable indexPV)
public MergePointStatement(LocationVariable identifier, Comment[] comments)
public MergePointStatement(ExtList children)
public Comment[] getComments()
JavaProgramElementgetComments in interface ProgramElementgetComments in class JavaProgramElementpublic int getExpressionCount()
getExpressionCount in interface ExpressionContainerpublic Expression getExpressionAt(int index)
getExpressionAt in interface ExpressionContainerindex - an index for an expression.java.lang.ArrayIndexOutOfBoundsException - if index is out of bounds.public Expression getExpression()
public int getChildCount()
getChildCount in interface NonTerminalProgramElementpublic ProgramElement getChildAt(int index)
getChildAt in interface NonTerminalProgramElementindex - an index into this node's "virtual" child arrayjava.lang.ArrayIndexOutOfBoundsException - if index is out of boundspublic void visit(Visitor v)
visit in interface SourceElementv - the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.java.io.IOException - occasionally thrown.