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.-
Interface Summary Interface Description AuxiliaryType An auxiliary type that provides services to the instrumentation of another type.AuxiliaryType.NamingStrategy Representation of a naming strategy for an auxiliary type.TypeProxy.InvocationFactory An invocation factory is responsible for creating a special method invocation for any method that is to be invoked. -
Class Summary Class Description AuxiliaryType.NamingStrategy.SuffixingRandom 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.MethodCallProxy A method call proxy represents a class that is compiled against a particular method which can then be called whenever either itsCallable.call()
orRunnable.run()
method is called where the method call proxy implements both interfaces.MethodCallProxy.AssignableSignatureCall A stack manipulation that creates aMethodCallProxy
for a given method an pushes such an object onto the call stack.MethodCallProxy.ConstructorCall.Appender The appender for implementing theMethodCallProxy.ConstructorCall
.MethodCallProxy.MethodCall An implementation for a method of aMethodCallProxy
.TypeProxy 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.TypeProxy.ForDefaultMethod 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.TypeProxy.ForSuperMethodByConstructor Loads a type proxy onto the operand stack which is created by calling one of its constructors.TypeProxy.ForSuperMethodByReflectionFactory 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.TypeProxy.SilentConstruction.Appender The appender for implementing aTypeProxy.SilentConstruction
. -
Enum Summary Enum Description MethodCallProxy.ConstructorCall An implementation for a constructor of aMethodCallProxy
.MethodCallProxy.PrecomputedMethodGraph A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.PrivilegedMemberLookupAction APrivilegedExceptionAction
to lookup a method constant using anAccessController
.TrivialType A trivial type that extendsObject
without defining any fields, methods or constructors.TypeProxy.AbstractMethodErrorThrow A stack manipulation that throws an abstract method error in case that a given super method cannot be invoked.TypeProxy.InvocationFactory.Default Default implementations of theTypeProxy.InvocationFactory
.TypeProxy.SilentConstruction An implementation of a silent construction of a given type by using the non-standardizedReflectionFactory
. -
Annotation Types Summary Annotation Type Description AuxiliaryType.SignatureRelevant A marker to indicate that an auxiliary type is part of the instrumented types signature.