Package com.android.dx.rop.type
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
Object which has an associated type, possibly itself.
-
Method Summary
Modifier and TypeMethodDescriptionint
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.getType()
Gets the type associated with this instance.boolean
Returns whether this instance represents a constant value.
-
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 returnsthis
, except ifType.isIntlike()
on the underlying type returnstrue
but the underlying type is not in factType.INT
, in which case this method returns an instance whose underlying type isINT
.- 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 byType
-
getBasicFrameType
int getBasicFrameType()Gets the basic type corresponding to this instance's frame type. This is equivalent togetFrameType().getBasicType()
, and is the same as callinggetFrameType()
unless this instance is an int-like type, in which case this method returnsBT_INT
.- Returns:
- the basic frame type; one of the
BT_*
constants defined byType
- See Also:
-
isConstant
boolean isConstant()Returns whether this instance represents a constant value.- Returns:
true
if this instance represents a constant value andfalse
if not
-