|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Represents an explicit constructor invocation. For example:
this();
super();
| Method Summary | |
AstExpression[] |
getArguments()
Returns arguments for the constructor. |
AstExpression |
getBase()
Returns the base expression if this is a qualified constructor invocation, otherwise null. |
AstDeclaration |
getReferencedElement()
Returns the declaration of the constructor that is called by this expression. |
AstTypeReference |
getType()
Returns a reference to the void type since constructor invocations have no type. |
boolean |
isSuperCall()
Returns true if this is a superclass constructor invocation,
otherwise false. |
boolean |
isThisCall()
Returns true if this is an alternate constructor invocation,
otherwise false. |
| Methods inherited from interface com.togethersoft.sca.ast.AstExpression |
getOperands, getRuntimeType, isConstant |
| Methods inherited from interface com.togethersoft.sca.ast.AstObject |
addComment, getChildren, getComments, getCompilationUnit, getDeclaringMethod, getDeclaringType, getObjectKind, getPackage, getParent, getPosition, isDeleted, remove, replaceWith, replaceWith, setPosition, setPositionAfter, visitExpressions, visitStatements |
| Method Detail |
public AstExpression[] getArguments()
public AstExpression getBase()
null.public AstDeclaration getReferencedElement()
getReferencedElement in interface AstReferenceAstMethodpublic AstTypeReference getType()
getType in interface AstExpressionvoid type.public boolean isSuperCall()
true if this is a superclass constructor invocation,
otherwise false.true is this is a superclass constructor invocation.public boolean isThisCall()
true if this is an alternate constructor invocation,
otherwise false.true is this is an alternate constructor invocation.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||