Class CstShort
java.lang.Object
com.android.dx.rop.cst.Constant
com.android.dx.rop.cst.TypedConstant
com.android.dx.rop.cst.CstLiteralBits
com.android.dx.rop.cst.CstLiteral32
com.android.dx.rop.cst.CstShort
- All Implemented Interfaces:
TypeBearer, ToHuman, Comparable<Constant>
Constants of type
short.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the type associated with this instance.shortgetValue()Gets theshortvalue.static CstShortmake(int value) Makes an instance for the givenintvalue.static CstShortmake(short value) Makes an instance for the given 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 CstLiteral32
compareTo0, equals, fitsInInt, getIntBits, getLongBits, hashCode, isCategory2Methods inherited from class CstLiteralBits
fitsIn16Bits, fitsIn8BitsMethods inherited from class TypedConstant
getBasicFrameType, getBasicType, getFrameType, isConstant
-
Field Details
-
VALUE_0
non-null;the value0as 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- theshortvalue- Returns:
non-null;the appropriate instance
-
make
Makes an instance for the givenintvalue. This may (but does not necessarily) return an already-allocated instance.- Parameters:
value- the value, which must be in range for ashort- Returns:
non-null;the appropriate instance
-
toString
-
getType
-
typeName
-
toHuman
Return the "human" string form of this instance. This is generally less "debuggy" thantoString().- Returns:
non-null;the human string form
-
getValue
public short getValue()Gets theshortvalue.- Returns:
- the value
-