public class RKeYMetaConstructExpression extends Literal implements ExpressionContainer, KeYRecoderExtension
ProgramElement.TreeStructureSourceElement.Position| Modifier and Type | Field and Description |
|---|---|
protected Expression |
child
Child
|
protected java.lang.String |
name |
private static long |
serialVersionUID |
expressionParentcommentsfactorySTRUCTURAL_EQUALITY, STRUCTURAL_HASH_CODE| Modifier | Constructor and Description |
|---|---|
|
RKeYMetaConstructExpression() |
protected |
RKeYMetaConstructExpression(RKeYMetaConstructExpression proto) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SourceVisitor v) |
Literal |
deepClone() |
Expression |
getChild()
Get child.
|
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 child0) |
java.lang.Object |
getEquivalentJavaType() |
Expression |
getExpressionAt(int index) |
int |
getExpressionCount()
Get the number of expression in this container.
|
int |
getIndexOfChild(int posCode)
Deprecated.
|
int |
getIndexOfChild(ProgramElement pe) |
java.lang.String |
getName()
returns a String name of this meta construct.
|
int |
getRoleOfChild(int i) |
void |
makeAllParentRolesValid() |
void |
makeParentRoleValid()
Make parent role valid.
|
boolean |
replaceChild(ProgramElement p,
ProgramElement q) |
void |
setChild(Expression expression)
Set child.
|
void |
setName(java.lang.String s)
sets a String name of this meta construct like 'unwind-loop'
|
void |
validateAll() |
getASTParent, getExpressionContainer, setExpressionContainergetComments, setComments, validategetEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetASTParent, getComments, setCommentsgetEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSourcevalidateprivate static final long serialVersionUID
protected Expression child
protected java.lang.String name
protected RKeYMetaConstructExpression(RKeYMetaConstructExpression proto)
public RKeYMetaConstructExpression()
public void makeParentRoleValid()
makeParentRoleValid in interface NonTerminalProgramElementpublic 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 child0)
getChildPositionCode in interface NonTerminalProgramElementpublic int getIndexOfChild(ProgramElement pe)
getIndexOfChild in interface NonTerminalProgramElement@Deprecated public int getIndexOfChild(int posCode)
getIndexOfChild in interface NonTerminalProgramElementpublic int getRoleOfChild(int i)
getRoleOfChild in interface NonTerminalProgramElementpublic void makeAllParentRolesValid()
makeAllParentRolesValid in interface NonTerminalProgramElementpublic boolean replaceChild(ProgramElement p, ProgramElement q)
replaceChild in interface NonTerminalProgramElementpublic void setName(java.lang.String s)
s - the Stringpublic java.lang.String getName()
public Expression getChild()
public void setChild(Expression expression)
expression - a expression.public int getExpressionCount()
getExpressionCount in interface ExpressionContainerpublic Expression getExpressionAt(int index)
getExpressionAt in interface ExpressionContainerpublic void accept(SourceVisitor v)
accept in interface SourceElementpublic Literal deepClone()
deepClone in interface ExpressiondeepClone in interface SourceElementpublic void validateAll()
throws ModelException
validateAll in interface NonTerminalProgramElementModelExceptionpublic java.lang.Object getEquivalentJavaType()
getEquivalentJavaType in class Literal