public class RMethodBodyStatement extends JavaStatement implements KeYRecoderExtension, TypeReferenceContainer, ExpressionContainer, NamedProgramElement
NamedModelElement.LexicalOrderProgramElement.TreeStructureSourceElement.Position| Modifier and Type | Field and Description |
|---|---|
private ASTList<Expression> |
arguments |
private TypeReference |
bodySource |
private Identifier |
methodName |
private ReferencePrefix |
methodReferencePrefix |
private ProgramVariableSVWrapper |
resultVar |
private static long |
serialVersionUID |
parentcommentsfactoryLEXICAL_ORDERSTRUCTURAL_EQUALITY, STRUCTURAL_HASH_CODE| Constructor and Description |
|---|
RMethodBodyStatement(TypeReference typeRef,
ProgramVariableSVWrapper resVar,
MethodReference mr) |
RMethodBodyStatement(TypeReference typeRef,
ProgramVariableSVWrapper resVar,
ReferencePrefix prefix,
Identifier methodName,
ASTList<Expression> arguments) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SourceVisitor visitor) |
RMethodBodyStatement |
deepClone() |
TypeReference |
getBodySource() |
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.
|
int |
getChildPositionCode(ProgramElement child) |
Expression |
getExpressionAt(int index) |
int |
getExpressionCount() |
Identifier |
getIdentifier() |
MethodReference |
getMethodReference() |
java.lang.String |
getName() |
ProgramVariableSVWrapper |
getResultVar() |
TypeReference |
getTypeReferenceAt(int index) |
int |
getTypeReferenceCount() |
void |
makeParentRoleValid()
Ensures that each child has "this" as syntactical parent.
|
boolean |
replaceChild(ProgramElement p,
ProgramElement q)
Replace a single child in the current node.
|
void |
setIdentifier(Identifier methodName) |
void |
setMethodReference(MethodReference methRef)
Set the MethodReference that caused this call.
|
getASTParent, getStatementContainer, setStatementContainergetIndexOfChild, getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAllgetComments, setComments, validategetEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIndexOfChild, getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAllgetASTParent, getComments, setCommentsgetEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSourceprivate static final long serialVersionUID
private TypeReference bodySource
private ProgramVariableSVWrapper resultVar
private ReferencePrefix methodReferencePrefix
private Identifier methodName
private ASTList<Expression> arguments
public RMethodBodyStatement(TypeReference typeRef, ProgramVariableSVWrapper resVar, MethodReference mr)
public RMethodBodyStatement(TypeReference typeRef, ProgramVariableSVWrapper resVar, ReferencePrefix prefix, Identifier methodName, ASTList<Expression> arguments)
public void accept(SourceVisitor visitor)
accept in interface SourceElementpublic RMethodBodyStatement deepClone()
deepClone in interface SourceElementdeepClone in interface Statementpublic void setMethodReference(MethodReference methRef)
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 int getChildPositionCode(ProgramElement child)
getChildPositionCode in interface NonTerminalProgramElementpublic void makeParentRoleValid()
makeParentRoleValid in interface NonTerminalProgramElementmakeParentRoleValid in class JavaNonTerminalProgramElementpublic boolean replaceChild(ProgramElement p, ProgramElement q)
replaceChild in interface NonTerminalProgramElementp - the old child.q - the new child.java.lang.ClassCastException - if the new child cannot take over
the role of the old one.public TypeReference getBodySource()
public ProgramVariableSVWrapper getResultVar()
public MethodReference getMethodReference()
public int getTypeReferenceCount()
getTypeReferenceCount in interface TypeReferenceContainerpublic TypeReference getTypeReferenceAt(int index)
getTypeReferenceAt in interface TypeReferenceContainerpublic int getExpressionCount()
getExpressionCount in interface ExpressionContainerpublic Expression getExpressionAt(int index)
getExpressionAt in interface ExpressionContainerpublic Identifier getIdentifier()
getIdentifier in interface NamedProgramElementpublic void setIdentifier(Identifier methodName)
setIdentifier in interface NamedProgramElementpublic java.lang.String getName()
getName in interface NamedModelElement