Package io.airlift.bytecode.instruction
Class TypeInstruction
- java.lang.Object
-
- io.airlift.bytecode.instruction.TypeInstruction
-
- All Implemented Interfaces:
BytecodeNode,InstructionNode
public class TypeInstruction extends Object implements InstructionNode
-
-
Constructor Summary
Constructors Constructor Description TypeInstruction(OpCode opCode, ParameterizedType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(BytecodeNode parent, BytecodeVisitor<T> visitor)voidaccept(org.objectweb.asm.MethodVisitor visitor, MethodGenerationContext generationContext)static InstructionNodecast(ParameterizedType type)static InstructionNodecast(Class<?> type)List<BytecodeNode>getChildNodes()static InstructionNodeinstanceOf(ParameterizedType type)static InstructionNodeinstanceOf(Class<?> type)static InstructionNodenewObject(ParameterizedType type)static InstructionNodenewObject(Class<?> type)static InstructionNodenewObjectArray(ParameterizedType type)static InstructionNodenewObjectArray(Class<?> type)static InstructionNodenewPrimitiveArray(ParameterizedType type)StringtoString()
-
-
-
Constructor Detail
-
TypeInstruction
public TypeInstruction(OpCode opCode, ParameterizedType type)
-
-
Method Detail
-
newObject
public static InstructionNode newObject(Class<?> type)
-
newObject
public static InstructionNode newObject(ParameterizedType type)
-
newPrimitiveArray
public static InstructionNode newPrimitiveArray(ParameterizedType type)
-
newObjectArray
public static InstructionNode newObjectArray(Class<?> type)
-
newObjectArray
public static InstructionNode newObjectArray(ParameterizedType type)
-
instanceOf
public static InstructionNode instanceOf(Class<?> type)
-
instanceOf
public static InstructionNode instanceOf(ParameterizedType type)
-
cast
public static InstructionNode cast(Class<?> type)
-
cast
public static InstructionNode cast(ParameterizedType type)
-
accept
public void accept(org.objectweb.asm.MethodVisitor visitor, MethodGenerationContext generationContext)- Specified by:
acceptin interfaceBytecodeNode
-
getChildNodes
public List<BytecodeNode> getChildNodes()
- Specified by:
getChildNodesin interfaceBytecodeNode
-
accept
public <T> T accept(BytecodeNode parent, BytecodeVisitor<T> visitor)
- Specified by:
acceptin interfaceBytecodeNode
-
-