|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceVariableDeclaration
T x. This node represents the declaration of a variable in the source, i.e. a method parameter or local variable. Notice that temporary and keyword variables do not have an explicit declaration.
VariableDeclaration
Method Summary | |
---|---|
SourceVariable |
getDeclaredVariable()
Returns the variable being declared. |
ASTNode |
getNode()
Returns the node this instruction is for. |
boolean |
isCaughtVariable()
Is this variable being declared as the parameter to a catch block? |
boolean |
isFormalParameter()
Is this variable being declared as a formal parameter to a method? |
IVariableBinding |
resolveBinding()
Resolves the declared variable's binding. |
Methods inherited from interface edu.cmu.cs.crystal.tac.TACInstruction |
---|
transfer, transfer |
Method Detail |
---|
ASTNode getNode()
VariableDeclaration
. Usually,
one instruction exists per AST node, but can be more
when AST nodes are desugared, such as for post-increment.
getNode
in interface TACInstruction
TACInstruction.getNode()
IVariableBinding resolveBinding()
SourceVariable getDeclaredVariable()
boolean isCaughtVariable()
true
if this variable is the parameter of a catch block.boolean isFormalParameter()
true
if this is a formal parameter declaration,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |