Interface TypeBearer

All Superinterfaces:
ToHuman
All Known Implementing Classes:
CstBaseMethodRef, CstBoolean, CstByte, CstChar, CstDouble, CstEnumRef, CstFieldRef, CstFloat, CstInteger, CstInterfaceMethodRef, CstKnownNull, CstLiteral32, CstLiteral64, CstLiteralBits, CstLong, CstMemberRef, CstMethodHandle, CstMethodRef, CstProtoRef, CstShort, CstString, CstType, RegisterSpec, ReturnAddress, Type, TypedConstant

public interface TypeBearer extends ToHuman
Object which has an associated type, possibly itself.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the basic type corresponding to this instance's frame type.
    int
    Gets the basic type corresponding to this instance.
    Gets the frame type corresponding to this type.
    Gets the type associated with this instance.
    boolean
    Returns whether this instance represents a constant value.

    Methods inherited from interface com.android.dx.util.ToHuman

    toHuman
  • Method Details

    • getType

      Type getType()
      Gets the type associated with this instance.
      Returns:
      non-null; the type
    • getFrameType

      TypeBearer getFrameType()
      Gets the frame type corresponding to this type. This method returns this, except if Type.isIntlike() on the underlying type returns true but the underlying type is not in fact Type.INT, in which case this method returns an instance whose underlying type is INT.
      Returns:
      non-null; the frame type for this instance
    • getBasicType

      int getBasicType()
      Gets the basic type corresponding to this instance.
      Returns:
      the basic type; one of the BT_* constants defined by Type
    • getBasicFrameType

      int getBasicFrameType()
      Gets the basic type corresponding to this instance's frame type. This is equivalent to getFrameType().getBasicType(), and is the same as calling getFrameType() unless this instance is an int-like type, in which case this method returns BT_INT.
      Returns:
      the basic frame type; one of the BT_* constants defined by Type
      See Also:
    • isConstant

      boolean isConstant()
      Returns whether this instance represents a constant value.
      Returns:
      true if this instance represents a constant value and false if not