public final class CstInteger extends CstLiteral32
CONSTANT_Integer_info.| Modifier and Type | Field and Description |
|---|---|
static CstInteger |
VALUE_0
non-null; instance representing 0 |
static CstInteger |
VALUE_1
non-null; instance representing 1 |
static CstInteger |
VALUE_2
non-null; instance representing 2 |
static CstInteger |
VALUE_3
non-null; instance representing 3 |
static CstInteger |
VALUE_4
non-null; instance representing 4 |
static CstInteger |
VALUE_5
non-null; instance representing 5 |
static CstInteger |
VALUE_M1
non-null; instance representing -1 |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType()
Gets the type associated with this instance.
|
int |
getValue()
Gets the
int value. |
static CstInteger |
make(int 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 CstInteger VALUE_M1
non-null; instance representing -1public static final CstInteger VALUE_0
non-null; instance representing 0public static final CstInteger VALUE_1
non-null; instance representing 1public static final CstInteger VALUE_2
non-null; instance representing 2public static final CstInteger VALUE_3
non-null; instance representing 3public static final CstInteger VALUE_4
non-null; instance representing 4public static final CstInteger VALUE_5
non-null; instance representing 5public static CstInteger make(int value)
value - the int valuenon-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 int getValue()
int value.Copyright © 2020. All Rights Reserved.