edu.cmu.cs.crystal.tac
Interface ArrayInitInstruction

All Superinterfaces:
AssignmentInstruction, TACInstruction

public interface ArrayInitInstruction
extends AssignmentInstruction

x = { y1, ..., yn }.

Author:
Kevin Bierhoff
See Also:
ArrayInitializer

Method Summary
 java.util.List<Variable> getInitOperands()
          Returns the operands initializing the array.
 ASTNode getNode()
          Returns the node this instruction is for.
 
Methods inherited from interface edu.cmu.cs.crystal.tac.AssignmentInstruction
getTarget
 
Methods inherited from interface edu.cmu.cs.crystal.tac.TACInstruction
transfer, transfer
 

Method Detail

getNode

ASTNode getNode()
Returns the node this instruction is for. Should be of type ArrayInitializer. Usually, one instruction exists per AST node, but can be more when AST nodes are desugared, such as for post-increment.

Specified by:
getNode in interface TACInstruction
Returns:
the node this instruction is for.
See Also:
TACInstruction.getNode()

getInitOperands

java.util.List<Variable> getInitOperands()
Returns the operands initializing the array. In x = { y1, ..., yn }, this would be the list y1, ..., yn.

Returns:
the operands initializing the array.