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, matchChildren
hashCode, prettyPrintMain, reuseSignature
getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
match
equalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getPositionInfo, getRelativePosition, getStartPosition
protected final IProgramVariable identifier
protected final Comment[] comments
public MergePointStatement(IProgramVariable indexPV)
public MergePointStatement(LocationVariable identifier, Comment[] comments)
public MergePointStatement(ExtList children)
public Comment[] getComments()
JavaProgramElement
getComments
in interface ProgramElement
getComments
in class JavaProgramElement
public int getExpressionCount()
getExpressionCount
in interface ExpressionContainer
public Expression getExpressionAt(int index)
getExpressionAt
in interface ExpressionContainer
index
- an index for an expression.java.lang.ArrayIndexOutOfBoundsException
- if index is out of bounds.public Expression getExpression()
public int getChildCount()
getChildCount
in interface NonTerminalProgramElement
public ProgramElement getChildAt(int index)
getChildAt
in interface NonTerminalProgramElement
index
- an index into this node's "virtual" child arrayjava.lang.ArrayIndexOutOfBoundsException
- if index is out of boundspublic void visit(Visitor v)
visit
in interface SourceElement
v
- the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElement
prettyPrint
in interface SourceElement
prettyPrint
in class JavaProgramElement
p
- a pretty printer.java.io.IOException
- occasionally thrown.