Uses of Class
net.bytebuddy.utility.JavaConstant.MethodHandle
-
Packages that use JavaConstant.MethodHandle Package Description net.bytebuddy.agent.builder An agent builder is used to easily implement load-time class-transformations using a Java agent.net.bytebuddy.implementation.bytecode.constant StackManipulation
s in this package are responsible for creating compile-time constants and pushing them onto the operand stack.net.bytebuddy.utility This package contains utility classes for common use within any Byte Buddy logic. -
-
Uses of JavaConstant.MethodHandle in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as JavaConstant.MethodHandle Modifier and Type Field Description private JavaConstant.MethodHandle
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation. targetMethod
The handle of the target method of the lambda expression.private JavaConstant.MethodHandle
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation. targetMethod
A handle that references the lambda expressions invocation target.Constructors in net.bytebuddy.agent.builder with parameters of type JavaConstant.MethodHandle Constructor Description LambdaMethodImplementation(JavaConstant.MethodHandle targetMethod, JavaConstant.MethodType specializedLambdaMethod)
Creates a implementation of a lambda expression's functional method.SerializationImplementation(TypeDescription targetType, TypeDescription lambdaType, java.lang.String lambdaMethodName, JavaConstant.MethodType lambdaMethod, JavaConstant.MethodHandle targetMethod, JavaConstant.MethodType specializedMethod)
Creates a new implementation for a serializable's lambda expression'swriteReplace
method. -
Uses of JavaConstant.MethodHandle in net.bytebuddy.implementation.bytecode.constant
Methods in net.bytebuddy.implementation.bytecode.constant with parameters of type JavaConstant.MethodHandle Modifier and Type Method Description org.objectweb.asm.Handle
JavaConstantValue.Visitor. onMethodHandle(JavaConstant.MethodHandle constant)
Invoked on a constant that represents aJavaConstant.MethodHandle
. -
Uses of JavaConstant.MethodHandle in net.bytebuddy.utility
Fields in net.bytebuddy.utility declared as JavaConstant.MethodHandle Modifier and Type Field Description private JavaConstant.MethodHandle
JavaConstant.Dynamic. bootstrap
A handle representation of the bootstrap method.Methods in net.bytebuddy.utility that return JavaConstant.MethodHandle Modifier and Type Method Description JavaConstant.MethodHandle
JavaConstant.Dynamic. getBootstrap()
Returns a handle representation of the bootstrap method.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. of(java.lang.reflect.Constructor<?> constructor)
Creates a method handle representation of the given constructor.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. of(java.lang.reflect.Method method)
Creates a method handle representation of the given method.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. of(MethodDescription.InDefinedShape methodDescription)
Creates a method handle representation of the given method.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofGetter(java.lang.reflect.Field field)
Returns a method handle for a setter of the given field.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofGetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a setter of the given field.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofLoaded(java.lang.Object methodHandle)
Creates a method handles representation of a loaded method handle which is analyzed using a publicMethodHandles.Lookup
object.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofLoaded(java.lang.Object methodHandle, java.lang.Object lookup)
Creates a method handles representation of a loaded method handle which is analyzed using the given lookup context.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofSetter(java.lang.reflect.Field field)
Returns a method handle for a getter of the given field.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofSetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a getter of the given field.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofSpecial(java.lang.reflect.Method method, java.lang.Class<?> type)
Creates a method handle representation of the given method for an explicit special method invocation of an otherwise virtual method.static JavaConstant.MethodHandle
JavaConstant.MethodHandle. ofSpecial(MethodDescription.InDefinedShape methodDescription, TypeDescription typeDescription)
Creates a method handle representation of the given method for an explicit special method invocation of an otherwise virtual method.Methods in net.bytebuddy.utility with parameters of type JavaConstant.MethodHandle Modifier and Type Method Description JavaConstant
JavaConstant.Visitor.NoOp. onMethodHandle(JavaConstant.MethodHandle constant)
Invoked on a constant that represents aJavaConstant.MethodHandle
.T
JavaConstant.Visitor. onMethodHandle(JavaConstant.MethodHandle constant)
Invoked on a constant that represents aJavaConstant.MethodHandle
.Constructors in net.bytebuddy.utility with parameters of type JavaConstant.MethodHandle Constructor Description Dynamic(java.lang.String name, TypeDescription typeDescription, JavaConstant.MethodHandle bootstrap, java.util.List<JavaConstant> arguments)
Creates a dynamic resolved constant.
-