Package net.bytebuddy.implementation
Class InvokeDynamic.InvocationProvider.Target.Resolved.Simple
- java.lang.Object
-
- net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.Target.Resolved.Simple
-
- All Implemented Interfaces:
InvokeDynamic.InvocationProvider.Target.Resolved
- Enclosing interface:
- InvokeDynamic.InvocationProvider.Target.Resolved
@Enhance public static class InvokeDynamic.InvocationProvider.Target.Resolved.Simple extends java.lang.Object implements InvokeDynamic.InvocationProvider.Target.Resolved
A simple implementation ofInvokeDynamic.InvocationProvider.Target.Resolved
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.Target.Resolved
InvokeDynamic.InvocationProvider.Target.Resolved.Simple
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
internalName
The internal name of the requested method.private java.util.List<TypeDescription>
parameterTypes
The types of the values on the operand stack.private TypeDescription
returnType
The requested return type.private StackManipulation
stackManipulation
The stack manipulation that loads the arguments onto the operand stack.
-
Constructor Summary
Constructors Constructor Description Simple(StackManipulation stackManipulation, java.lang.String internalName, TypeDescription returnType, java.util.List<TypeDescription> parameterTypes)
Creates a new simple instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInternalName()
Returns the internal name of the requested method.java.util.List<TypeDescription>
getParameterTypes()
Returns the types of the values on the operand stack.TypeDescription
getReturnType()
Returns the requested return type.StackManipulation
getStackManipulation()
Returns the stack manipulation that loads the arguments onto the operand stack.
-
-
-
Field Detail
-
stackManipulation
private final StackManipulation stackManipulation
The stack manipulation that loads the arguments onto the operand stack.
-
internalName
private final java.lang.String internalName
The internal name of the requested method.
-
returnType
private final TypeDescription returnType
The requested return type.
-
parameterTypes
private final java.util.List<TypeDescription> parameterTypes
The types of the values on the operand stack.
-
-
Constructor Detail
-
Simple
public Simple(StackManipulation stackManipulation, java.lang.String internalName, TypeDescription returnType, java.util.List<TypeDescription> parameterTypes)
Creates a new simple instance.- Parameters:
stackManipulation
- The stack manipulation that loads the arguments onto the operand stack.internalName
- The internal name of the requested method.returnType
- The requested return type.parameterTypes
- The types of the values on the operand stack.
-
-
Method Detail
-
getStackManipulation
public StackManipulation getStackManipulation()
Returns the stack manipulation that loads the arguments onto the operand stack.- Specified by:
getStackManipulation
in interfaceInvokeDynamic.InvocationProvider.Target.Resolved
- Returns:
- The stack manipulation that loads the arguments onto the operand stack.
-
getReturnType
public TypeDescription getReturnType()
Returns the requested return type.- Specified by:
getReturnType
in interfaceInvokeDynamic.InvocationProvider.Target.Resolved
- Returns:
- The requested return type.
-
getInternalName
public java.lang.String getInternalName()
Returns the internal name of the requested method.- Specified by:
getInternalName
in interfaceInvokeDynamic.InvocationProvider.Target.Resolved
- Returns:
- The internal name of the requested method.
-
getParameterTypes
public java.util.List<TypeDescription> getParameterTypes()
Returns the types of the values on the operand stack.- Specified by:
getParameterTypes
in interfaceInvokeDynamic.InvocationProvider.Target.Resolved
- Returns:
- The types of the values on the operand stack.
-
-