|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConstructorCallInstruction
x(y1, ..., yn), where x is "this" or "super". This instruction can by definition only occur in a constructor. It does not have to be the first instruction in the constructor if arguments to the constructor call are computed with preceding instructions.
ConstructorInvocation
,
SuperConstructorInvocation
Method Summary | |
---|---|
java.util.List<Variable> |
getArgOperands()
Returns the operands for the arguments passed into an invocation. |
KeywordVariable |
getConstructionObject()
Returns variable for the object being constructed, i.e., or
. |
Variable |
getEnclosingInstanceSpecifier()
Specifier of an enclosing instance passed into the constructor, if any. |
ASTNode |
getNode()
Returns the node this instruction is for. |
boolean |
hasEnclosingInstanceSpecifier()
Indicates whether there is an enclosing instance specifier passed into the constructor call. |
boolean |
isSuperCall()
Indicates whether this is a super-constructor call or a call to a constructor in the same class as the surrounding constructor. |
IMethodBinding |
resolveBinding()
Returns the method binding for this invocation. |
Methods inherited from interface edu.cmu.cs.crystal.tac.TACInstruction |
---|
transfer, transfer |
Method Detail |
---|
ASTNode getNode()
getNode
in interface TACInstruction
TACInstruction.getNode()
KeywordVariable getConstructionObject()
this
or
super
.
this
or
super
.boolean isSuperCall()
true
then getConstructionObject()
will return super
and
otherwise this
.
true
if this is a super-constructor
call, false
if this is a call to a constructor
in the same class as the surrounding constructor.java.util.List<Variable> getArgOperands()
TACInvocation
getArgOperands
in interface TACInvocation
boolean hasEnclosingInstanceSpecifier()
enclosing instance specifier
passed into the constructor call.
getEnclosingInstanceSpecifier()
will only return
a non-null
value if this method returns true
.
true
if there is an enclosing instance
specifier, false
otherwise.Variable getEnclosingInstanceSpecifier()
null
if there is none.IMethodBinding resolveBinding()
TACInvocation
resolveBinding
in interface TACInvocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |