|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.java.JavaSourceElement
recoder.java.JavaProgramElement
recoder.java.JavaNonTerminalProgramElement
recoder.java.reference.SpecialConstructorReference
public abstract class SpecialConstructorReference
Occurs in a constructor declaration as the first statement as this(...) or super(...) reference. The Reference knows the constructor declaration it refers to.
| Field Summary |
|---|
| Fields inherited from class recoder.java.JavaSourceElement |
|---|
factory |
| Constructor Summary | |
|---|---|
|
SpecialConstructorReference()
Special constructor reference. |
|
SpecialConstructorReference(ASTList<Expression> arguments)
Special constructor reference. |
protected |
SpecialConstructorReference(SpecialConstructorReference proto)
Special constructor reference. |
| Method Summary | |
|---|---|
ASTList<Expression> |
getArguments()
Get arguments. |
NonTerminalProgramElement |
getASTParent()
Get AST parent. |
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. |
Expression |
getExpressionAt(int index)
|
int |
getExpressionCount()
Get the number of expressions in this container. |
StatementContainer |
getStatementContainer()
Get statement container. |
void |
makeParentRoleValid()
Make parent role valid. |
boolean |
replaceChild(ProgramElement p,
ProgramElement q)
Replace a single child in the current node. |
void |
setArguments(ASTList<Expression> list)
Set arguments. |
void |
setStatementContainer(StatementContainer s)
Set statement container. |
| Methods inherited from class recoder.java.JavaNonTerminalProgramElement |
|---|
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll |
| Methods inherited from class recoder.java.JavaProgramElement |
|---|
getComments, getID, setComments, validate |
| Methods inherited from class recoder.java.JavaSourceElement |
|---|
getEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface recoder.java.NonTerminalProgramElement |
|---|
getChildPositionCode, getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll |
| Methods inherited from interface recoder.java.Statement |
|---|
deepClone |
| Constructor Detail |
|---|
public SpecialConstructorReference()
public SpecialConstructorReference(ASTList<Expression> arguments)
arguments - an expression mutable list.protected SpecialConstructorReference(SpecialConstructorReference proto)
proto - a special constructor reference.| Method Detail |
|---|
public void makeParentRoleValid()
makeParentRoleValid in interface NonTerminalProgramElementmakeParentRoleValid in class JavaNonTerminalProgramElementpublic NonTerminalProgramElement getASTParent()
getASTParent in interface ProgramElementpublic StatementContainer getStatementContainer()
getStatementContainer in interface Statementpublic void setStatementContainer(StatementContainer s)
setStatementContainer in interface Statements - a statement container.public int getChildCount()
getChildCount in interface NonTerminalProgramElementpublic ProgramElement getChildAt(int index)
getChildAt in interface NonTerminalProgramElementindex - an index into this node's "virtual" child array
java.lang.ArrayIndexOutOfBoundsException - if index is out of boundspublic int getExpressionCount()
getExpressionCount in interface ExpressionContainerpublic Expression getExpressionAt(int index)
getExpressionAt in interface ExpressionContainer
public boolean replaceChild(ProgramElement p,
ProgramElement q)
replaceChild in interface NonTerminalProgramElementp - the old child.p - the new child.
java.lang.ClassCastException - if the new child cannot take over the role of the old one.public ASTList<Expression> getArguments()
getArguments in interface ConstructorReferencepublic void setArguments(ASTList<Expression> list)
setArguments in interface ConstructorReferencelist - an expression mutable list.
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||