Interface IDInstanceField

All Superinterfaces:
IDElement, IDExpression, IDField, IInstructionOperand

public interface IDInstanceField extends IDField
dexdec IR instance field. It is also used to support the pseudo array type field length.

Example:

 Foo obj = new Foo();
 obj.var = 1;
 ^^^^^^^
 
 int[] matrix = new int[4];
 int len = matrix.length;
           ^^^^^^^^^^^^^
 
  • Method Details

    • getInstance

      IDExpression getInstance()
      Retrieve the field instance expression, that is, the expression representing the object containing this field.
      Returns:
    • isArrayLength

      boolean isArrayLength()
      Determine whether this object represents the pseudo-field array.length.
      Returns:
    • duplicate

      IDInstanceField duplicate()
      Description copied from interface: IDElement
      Duplicate this element.
      Specified by:
      duplicate in interface IDElement
      Specified by:
      duplicate in interface IDExpression
      Specified by:
      duplicate in interface IDField
      Returns:
      a deep copy of this element; the type of the duplicated element should be the same as this element's type