Class TypeProxy.SilentConstruction.Appender
java.lang.Object
net.bytebuddy.implementation.auxiliary.TypeProxy.SilentConstruction.Appender
- All Implemented Interfaces:
ByteCodeAppender
- Enclosing class:
- TypeProxy.SilentConstruction
@Enhance
protected static class TypeProxy.SilentConstruction.Appender
extends Object
implements ByteCodeAppender
The appender for implementing a
TypeProxy.SilentConstruction
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.ByteCodeAppender
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The descriptor of theClass.getDeclaredClasses()
method.static final String
The internal name of theClass.getDeclaredClasses()
method.static final String
The descriptor of the factory method for getting hold of an instance of the reflection factory class.static final String
The name of the factory method for getting hold of an instance of the reflection factory class.private final TypeDescription
The instrumented type that this factory method is created for.static final String
The internal name of theClass
class.static final String
The internal name of theConstructor
class.static final String
The descriptor of theObject
class.static final String
The internal name of theObject
class.static final String
The descriptor of the method for creating a new serialization constructor.static final String
The name of the method for creating a new serialization constructor.static final String
The descriptor of theConstructor.newInstance(Object...)
method.static final String
The internal name of theConstructor.newInstance(Object...)
method.static final String
The internal name of the reflection factory class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Appender
(TypeDescription instrumentedType) Creates a new appender. -
Method Summary
Modifier and TypeMethodDescriptionapply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.
-
Field Details
-
REFLECTION_FACTORY_INTERNAL_NAME
The internal name of the reflection factory class.- See Also:
-
GET_REFLECTION_FACTORY_METHOD_NAME
The name of the factory method for getting hold of an instance of the reflection factory class.- See Also:
-
GET_REFLECTION_FACTORY_METHOD_DESCRIPTOR
The descriptor of the factory method for getting hold of an instance of the reflection factory class.- See Also:
-
NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_NAME
The name of the method for creating a new serialization constructor.- See Also:
-
NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_DESCRIPTOR
The descriptor of the method for creating a new serialization constructor.- See Also:
-
JAVA_LANG_OBJECT_DESCRIPTOR
The descriptor of theObject
class.- See Also:
-
JAVA_LANG_OBJECT_INTERNAL_NAME
The internal name of theObject
class.- See Also:
-
JAVA_LANG_CONSTRUCTOR_INTERNAL_NAME
The internal name of theConstructor
class.- See Also:
-
NEW_INSTANCE_METHOD_NAME
The internal name of theConstructor.newInstance(Object...)
method.- See Also:
-
NEW_INSTANCE_METHOD_DESCRIPTOR
The descriptor of theConstructor.newInstance(Object...)
method.- See Also:
-
JAVA_LANG_CLASS_INTERNAL_NAME
The internal name of theClass
class.- See Also:
-
GET_DECLARED_CONSTRUCTOR_METHOD_NAME
The internal name of theClass.getDeclaredClasses()
method.- See Also:
-
GET_DECLARED_CONSTRUCTOR_METHOD_DESCRIPTOR
The descriptor of theClass.getDeclaredClasses()
method.- See Also:
-
instrumentedType
The instrumented type that this factory method is created for.
-
-
Constructor Details
-
Appender
Creates a new appender.- Parameters:
instrumentedType
- The instrumented type that the factory method is created for.
-
-
Method Details
-
apply
public ByteCodeAppender.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod) Applies this byte code appender to a type creation process.- Specified by:
apply
in interfaceByteCodeAppender
- Parameters:
methodVisitor
- The method visitor to which the byte code appender writes its code to.implementationContext
- The implementation context of the current type creation process.instrumentedMethod
- The method that is the target of the instrumentation.- Returns:
- The required size for the applied byte code to run.
-