Package io.airlift.bytecode.instruction
Class InvokeInstruction
- java.lang.Object
-
- io.airlift.bytecode.instruction.InvokeInstruction
-
- All Implemented Interfaces:
BytecodeNode,InstructionNode
- Direct Known Subclasses:
InvokeInstruction.InvokeDynamicInstruction
public class InvokeInstruction extends Object implements InstructionNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvokeInstruction.InvokeDynamicInstruction
-
Constructor Summary
Constructors Constructor Description InvokeInstruction(OpCode opCode, ParameterizedType target, String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes)
-
Method Summary
-
-
-
Constructor Detail
-
InvokeInstruction
public InvokeInstruction(OpCode opCode, ParameterizedType target, String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes)
-
-
Method Detail
-
invokeStatic
public static InstructionNode invokeStatic(Method method)
-
invokeStatic
public static InstructionNode invokeStatic(MethodDefinition method)
-
invokeStatic
public static InstructionNode invokeStatic(Class<?> target, String name, Class<?> returnType, Class<?>... parameterTypes)
-
invokeStatic
public static InstructionNode invokeStatic(Class<?> target, String name, Class<?> returnType, Iterable<Class<?>> parameterTypes)
-
invokeStatic
public static InstructionNode invokeStatic(ParameterizedType target, String name, ParameterizedType returnType, ParameterizedType... parameterTypes)
-
invokeStatic
public static InstructionNode invokeStatic(ParameterizedType target, String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes)
-
invokeVirtual
public static InstructionNode invokeVirtual(Method method)
-
invokeVirtual
public static InstructionNode invokeVirtual(MethodDefinition method)
-
invokeVirtual
public static InstructionNode invokeVirtual(Class<?> target, String name, Class<?> returnType, Class<?>... parameterTypes)
-
invokeVirtual
public static InstructionNode invokeVirtual(Class<?> target, String name, Class<?> returnType, Iterable<Class<?>> parameterTypes)
-
invokeVirtual
public static InstructionNode invokeVirtual(ParameterizedType target, String name, ParameterizedType returnType, ParameterizedType... parameterTypes)
-
invokeVirtual
public static InstructionNode invokeVirtual(ParameterizedType target, String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes)
-
invokeInterface
public static InstructionNode invokeInterface(Method method)
-
invokeInterface
public static InstructionNode invokeInterface(MethodDefinition method)
-
invokeInterface
public static InstructionNode invokeInterface(Class<?> target, String name, Class<?> returnType, Class<?>... parameterTypes)
-
invokeInterface
public static InstructionNode invokeInterface(Class<?> target, String name, Class<?> returnType, Iterable<Class<?>> parameterTypes)
-
invokeInterface
public static InstructionNode invokeInterface(ParameterizedType target, String name, ParameterizedType returnType, ParameterizedType... parameterTypes)
-
invokeInterface
public static InstructionNode invokeInterface(ParameterizedType target, String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes)
-
invokeConstructor
public static InstructionNode invokeConstructor(Constructor<?> constructor)
-
invokeConstructor
public static InstructionNode invokeConstructor(Class<?> target, Class<?>... parameterTypes)
-
invokeConstructor
public static InstructionNode invokeConstructor(Class<?> target, Iterable<Class<?>> parameterTypes)
-
invokeConstructor
public static InstructionNode invokeConstructor(ParameterizedType target, ParameterizedType... parameterTypes)
-
invokeConstructor
public static InstructionNode invokeConstructor(ParameterizedType target, Iterable<ParameterizedType> parameterTypes)
-
invokeSpecial
public static InstructionNode invokeSpecial(Method method)
-
invokeSpecial
public static InstructionNode invokeSpecial(MethodDefinition method)
-
invokeSpecial
public static InstructionNode invokeSpecial(Class<?> target, String name, Class<?> returnType, Class<?>... parameterTypes)
-
invokeSpecial
public static InstructionNode invokeSpecial(Class<?> target, String name, Class<?> returnType, Iterable<Class<?>> parameterTypes)
-
invokeSpecial
public static InstructionNode invokeSpecial(ParameterizedType target, String name, ParameterizedType returnType, ParameterizedType... parameterTypes)
-
invokeSpecial
public static InstructionNode invokeSpecial(ParameterizedType target, String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes)
-
invokeDynamic
public static InstructionNode invokeDynamic(String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes, Method bootstrapMethod, Iterable<Object> bootstrapArguments)
-
invokeDynamic
public static InstructionNode invokeDynamic(String name, ParameterizedType returnType, Iterable<ParameterizedType> parameterTypes, Method bootstrapMethod, Object... bootstrapArguments)
-
invokeDynamic
public static InstructionNode invokeDynamic(String name, MethodType methodType, Method bootstrapMethod, Iterable<Object> bootstrapArguments)
-
invokeDynamic
public static InstructionNode invokeDynamic(String name, MethodType methodType, Method bootstrapMethod, Object... bootstrapArguments)
-
getOpCode
public OpCode getOpCode()
-
getTarget
public ParameterizedType getTarget()
-
getName
public String getName()
-
getReturnType
public ParameterizedType getReturnType()
-
getParameterTypes
public List<ParameterizedType> getParameterTypes()
-
getMethodDescription
public String getMethodDescription()
-
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
-
-