public abstract class Constant extends Object implements InstructionNode
| Modifier and Type | Class and Description |
|---|---|
static class |
Constant.BooleanConstant |
static class |
Constant.BoxedBooleanConstant |
static class |
Constant.BoxedDoubleConstant |
static class |
Constant.BoxedFloatConstant |
static class |
Constant.BoxedIntegerConstant |
static class |
Constant.BoxedLongConstant |
static class |
Constant.ClassConstant |
static class |
Constant.DoubleConstant |
static class |
Constant.FloatConstant |
static class |
Constant.IntConstant |
static class |
Constant.LongConstant |
static class |
Constant.NullConstant |
static class |
Constant.StringConstant |
| Constructor and Description |
|---|
Constant() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(BytecodeNode parent,
BytecodeVisitor<T> visitor) |
List<BytecodeNode> |
getChildNodes() |
abstract Object |
getValue() |
static Constant |
loadBoolean(boolean value) |
static Constant |
loadBoxedBoolean(boolean value) |
static Constant |
loadBoxedDouble(double value) |
static Constant |
loadBoxedFloat(float value) |
static Constant |
loadBoxedInt(int value) |
static Constant |
loadBoxedLong(long value) |
static Constant |
loadClass(Class<?> value) |
static Constant |
loadClass(ParameterizedType value) |
static Constant |
loadDouble(double value) |
static Constant |
loadFloat(float value) |
static Constant |
loadInt(int value) |
static Constant |
loadLong(long value) |
static Constant |
loadNull() |
static Constant |
loadNumber(Number value) |
static Constant |
loadString(String value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptpublic static Constant loadNull()
public static Constant loadBoolean(boolean value)
public static Constant loadBoxedBoolean(boolean value)
public static Constant loadInt(int value)
public static Constant loadBoxedInt(int value)
public static Constant loadFloat(float value)
public static Constant loadBoxedFloat(float value)
public static Constant loadLong(long value)
public static Constant loadBoxedLong(long value)
public static Constant loadDouble(double value)
public static Constant loadBoxedDouble(double value)
public static Constant loadClass(ParameterizedType value)
public abstract Object getValue()
public List<BytecodeNode> getChildNodes()
getChildNodes in interface BytecodeNodepublic <T> T accept(BytecodeNode parent, BytecodeVisitor<T> visitor)
accept in interface BytecodeNodeCopyright © 2012–2023. All rights reserved.