Class CstByte
- All Implemented Interfaces:
TypeBearer, ToHuman, Comparable<Constant>
Constants of type
byte.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the type associated with this instance.bytegetValue()Gets thebytevalue.static CstBytemake(byte value) Makes an instance for the given value.static CstBytemake(int value) Makes an instance for the givenintvalue.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- thebytevalue
-
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 abyte- 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 byte getValue()Gets thebytevalue.- Returns:
- the value
-