Package com.android.dx.rop.cst
Class CstByte
- All Implemented Interfaces:
TypeBearer
,ToHuman
,Comparable<Constant>
Constants of type
byte
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
Gets the type associated with this instance.byte
getValue()
Gets thebyte
value.static CstByte
make
(byte value) Makes an instance for the given value.static CstByte
make
(int value) Makes an instance for the givenint
value.toHuman()
Return the "human" string form of this instance.toString()
typeName()
Returns the human name for the particular type of constant this instance is.Methods inherited from class com.android.dx.rop.cst.CstLiteral32
compareTo0, equals, fitsInInt, getIntBits, getLongBits, hashCode, isCategory2
Methods inherited from class com.android.dx.rop.cst.CstLiteralBits
fitsIn16Bits, fitsIn8Bits
Methods inherited from class com.android.dx.rop.cst.TypedConstant
getBasicFrameType, getBasicType, getFrameType, isConstant
-
Field Details
-
VALUE_0
non-null;
the value0
as an instance of this class
-
-
Method Details
-
make
Makes an instance for the given value. This may (but does not necessarily) return an already-allocated instance.- Parameters:
value
- thebyte
value
-
make
Makes an instance for the givenint
value. This may (but does not necessarily) return an already-allocated instance.- Parameters:
value
- the value, which must be in range for abyte
- Returns:
non-null;
the appropriate instance
-
toString
-
getType
Gets the type associated with this instance.- Returns:
non-null;
the type
-
typeName
Returns the human name for the particular type of constant this instance is. -
toHuman
Return the "human" string form of this instance. This is generally less "debuggy" thantoString()
.- Returns:
non-null;
the human string form
-
getValue
public byte getValue()Gets thebyte
value.- Returns:
- the value
-