public final class CstShort extends CstLiteral32
short.| Modifier and Type | Field and Description |
|---|---|
static CstShort |
VALUE_0
non-null; the value 0 as an instance of this class |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType()
Gets the type associated with this instance.
|
short |
getValue()
Gets the
short value. |
static CstShort |
make(int value)
Makes an instance for the given
int value. |
static CstShort |
make(short value)
Makes an instance for the given value.
|
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
java.lang.String |
toString() |
java.lang.String |
typeName()
Returns the human name for the particular type of constant
this instance is.
|
compareTo0, equals, fitsInInt, getIntBits, getLongBits, hashCode, isCategory2fitsIn16Bits, fitsIn8BitsgetBasicFrameType, getBasicType, getFrameType, isConstantpublic static final CstShort VALUE_0
non-null; the value 0 as an instance of this classpublic static CstShort make(short value)
value - the short valuenon-null; the appropriate instancepublic static CstShort make(int value)
int value. This
may (but does not necessarily) return an already-allocated
instance.value - the value, which must be in range for a shortnon-null; the appropriate instancepublic java.lang.String toString()
toString in class java.lang.Objectpublic Type getType()
non-null; the typepublic java.lang.String typeName()
public java.lang.String toHuman()
toString().non-null; the human string formpublic short getValue()
short value.Copyright © 2020. All Rights Reserved.