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

All Superinterfaces:
AssignmentInstruction, OneOperandInstruction, TACInstruction

public interface InstanceofInstruction
extends OneOperandInstruction

x = y instanceof T.

Author:
Kevin Bierhoff
See Also:
InstanceofExpression

Method Summary
 ASTNode getNode()
          Returns the node this instruction is for.
 Type getTestedTypeNode()
          Returns the type tested with instanceof
 
Methods inherited from interface edu.cmu.cs.crystal.tac.model.OneOperandInstruction
getOperand
 
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
 

Method Detail

getNode

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

getTestedTypeNode

Type getTestedTypeNode()
Returns the type tested with instanceof

Returns:
the type tested with instanceof