Package net.bytebuddy.implementation.auxiliary
@ByDefault
package net.bytebuddy.implementation.auxiliary
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType
. A typical use case for auxiliary types is granting
access to super
invocations of method calls.-
ClassDescriptionAn auxiliary type that provides services to the instrumentation of another type.Representation of a naming strategy for an auxiliary type.A naming strategy for an auxiliary type which attempts an enumeration of types by using the hash code of the instrumenting instance.Creates a naming strategy that uses stable suffixes that are provided by the auxiliary types themselves.A naming strategy for an auxiliary type which returns the instrumented type's name with a fixed extension and a random number as a suffix.A marker to indicate that an auxiliary type is part of the instrumented types signature.A method call proxy represents a class that is compiled against a particular method which can then be called whenever either its
Callable.call()
orRunnable.run()
method is called where the method call proxy implements both interfaces.A stack manipulation that creates aMethodCallProxy
for a given method an pushes such an object onto the call stack.An implementation for a constructor of aMethodCallProxy
.The appender for implementing theMethodCallProxy.ConstructorCall
.An implementation for a method of aMethodCallProxy
.A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.APrivilegedExceptionAction
to lookup a method constant using anjava.security.AccessController
.A trivial type that extendsObject
without defining any fields, methods or constructors.A type proxy creates accessor methods for all overridable methods of a given type by subclassing the given type and delegating all method calls to accessor methods of the instrumented type it was created for.A stack manipulation that throws an abstract method error in case that a given super method cannot be invoked.Creates a type proxy which delegates its super method calls to any invokable default method of a given interface and loads an instance of this proxy onto the operand stack.Loads a type proxy onto the operand stack which is created by calling one of its constructors.Loads a type proxy onto the operand stack which is created by constructing a serialization constructor using the Oracle JDK'sReflectionFactory.newConstructorForSerialization(Class, java.lang.reflect.Constructor)
method which might not be available in any Java runtime.An invocation factory is responsible for creating a special method invocation for any method that is to be invoked.Default implementations of theTypeProxy.InvocationFactory
.An implementation of a silent construction of a given type by using the non-standardizedReflectionFactory
.The appender for implementing aTypeProxy.SilentConstruction
.