Package io.airlift.bytecode.instruction
Class Constant
java.lang.Object
io.airlift.bytecode.instruction.Constant
- All Implemented Interfaces:
BytecodeNode,InstructionNode
- Direct Known Subclasses:
Constant.BooleanConstant,Constant.BoxedBooleanConstant,Constant.BoxedDoubleConstant,Constant.BoxedFloatConstant,Constant.BoxedIntegerConstant,Constant.BoxedLongConstant,Constant.ClassConstant,Constant.DoubleConstant,Constant.DynamicConstant,Constant.FloatConstant,Constant.IntConstant,Constant.LongConstant,Constant.NullConstant,Constant.StringConstant
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(BytecodeNode parent, BytecodeVisitor<T> visitor) abstract ObjectgetValue()static ConstantloadBoolean(boolean value) static ConstantloadBoxedBoolean(boolean value) static ConstantloadBoxedDouble(double value) static ConstantloadBoxedFloat(float value) static ConstantloadBoxedInt(int value) static ConstantloadBoxedLong(long value) static ConstantloadClass(ParameterizedType value) static Constantstatic ConstantloadDouble(double value) static ConstantloadDynamic(String name, ParameterizedType type, Method bootstrapMethod, Iterable<Object> bootstrapArguments) static ConstantloadDynamic(String name, ParameterizedType type, Method bootstrapMethod, Object... bootstrapArguments) static ConstantloadFloat(float value) static ConstantloadInt(int value) static ConstantloadLong(long value) static ConstantloadNull()static ConstantloadNumber(Number value) static ConstantloadString(String value) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.airlift.bytecode.BytecodeNode
accept
-
Constructor Details
-
Constant
public Constant()
-
-
Method Details
-
loadNull
-
loadBoolean
-
loadBoxedBoolean
-
loadInt
-
loadBoxedInt
-
loadFloat
-
loadBoxedFloat
-
loadLong
-
loadBoxedLong
-
loadDouble
-
loadBoxedDouble
-
loadNumber
-
loadString
-
loadClass
-
loadClass
-
loadDynamic
-
loadDynamic
public static Constant loadDynamic(String name, ParameterizedType type, Method bootstrapMethod, Object... bootstrapArguments) -
getValue
-
getChildNodes
- Specified by:
getChildNodesin interfaceBytecodeNode
-
accept
- Specified by:
acceptin interfaceBytecodeNode
-
toString
-