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

All Superinterfaces:
TACInstruction
All Known Subinterfaces:
LoadFieldInstruction, StoreFieldInstruction

public interface TACFieldAccess
extends TACInstruction

x.f, i.e., an access to a field.

Author:
Kevin Bierhoff

Method Summary
 Variable getAccessedObjectOperand()
          Returns the object of which this field is a part.
 String getFieldName()
          Returns the name of the field being accessed.
 boolean isStaticFieldAccess()
          Indicates whether this is an access to a static field (including enum constants, I think).
 IVariableBinding resolveFieldBinding()
          Returns the binding of the field being accessed.
 
Methods inherited from interface edu.cmu.cs.crystal.tac.model.TACInstruction
getNode, transfer, transfer
 

Method Detail

getFieldName

String getFieldName()
Returns the name of the field being accessed.

Returns:
the name of the field being accessed.

resolveFieldBinding

IVariableBinding resolveFieldBinding()
Returns the binding of the field being accessed.

Returns:
the binding of the field being accessed.

isStaticFieldAccess

boolean isStaticFieldAccess()
Indicates whether this is an access to a static field (including enum constants, I think).

Returns:
true if a static field is accessed, false otherwise.

getAccessedObjectOperand

Variable getAccessedObjectOperand()
Returns the object of which this field is a part. In the expression x.f, this method returns x.

Returns:
The object being accessed.