edu.cmu.cs.crystal.tac.model
Interface LoadArrayInstruction

All Superinterfaces:
AssignmentInstruction, LoadInstruction, TACArrayAccess, TACInstruction

public interface LoadArrayInstruction
extends LoadInstruction, TACArrayAccess

x = y[z].

Author:
Kevin Bierhoff
See Also:
ArrayAccess

Method Summary
 ASTNode getNode()
          Returns the node this instruction is for.
 Variable getSourceArray()
          Returns the array from which a cell is loaded.
 
Methods inherited from interface edu.cmu.cs.crystal.tac.model.AssignmentInstruction
getTarget
 
Methods inherited from interface edu.cmu.cs.crystal.tac.model.TACInstruction
transfer, transfer
 
Methods inherited from interface edu.cmu.cs.crystal.tac.model.TACArrayAccess
getAccessedArrayOperand, getArrayIndex
 

Method Detail

getNode

ASTNode getNode()
Returns the node this instruction is for. Should be of type ArrayAccess. 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()

getSourceArray

Variable getSourceArray()
Returns the array from which a cell is loaded. This method is equivalent to TACArrayAccess.getAccessedArrayOperand().

Returns:
the array from which a cell is loaded.