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 java.lang.Object implements ByteCodeAppender
The appender for implementing aTypeProxy.SilentConstruction.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.ByteCodeAppender
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGET_DECLARED_CONSTRUCTOR_METHOD_DESCRIPTORThe descriptor of theClass.getDeclaredClasses()method.static java.lang.StringGET_DECLARED_CONSTRUCTOR_METHOD_NAMEThe internal name of theClass.getDeclaredClasses()method.static java.lang.StringGET_REFLECTION_FACTORY_METHOD_DESCRIPTORThe descriptor of the factory method for getting hold of an instance of the reflection factory class.static java.lang.StringGET_REFLECTION_FACTORY_METHOD_NAMEThe name of the factory method for getting hold of an instance of the reflection factory class.private TypeDescriptioninstrumentedTypeThe instrumented type that this factory method is created for.static java.lang.StringJAVA_LANG_CLASS_INTERNAL_NAMEThe internal name of theClassclass.static java.lang.StringJAVA_LANG_CONSTRUCTOR_INTERNAL_NAMEThe internal name of theConstructorclass.static java.lang.StringJAVA_LANG_OBJECT_DESCRIPTORThe descriptor of theObjectclass.static java.lang.StringJAVA_LANG_OBJECT_INTERNAL_NAMEThe internal name of theObjectclass.static java.lang.StringNEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_DESCRIPTORThe descriptor of the method for creating a new serialization constructor.static java.lang.StringNEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_NAMEThe name of the method for creating a new serialization constructor.static java.lang.StringNEW_INSTANCE_METHOD_DESCRIPTORThe descriptor of theConstructor.newInstance(Object...)method.static java.lang.StringNEW_INSTANCE_METHOD_NAMEThe internal name of theConstructor.newInstance(Object...)method.static java.lang.StringREFLECTION_FACTORY_INTERNAL_NAMEThe internal name of the reflection factory class.
-
Constructor Summary
Constructors Modifier Constructor Description privateAppender(TypeDescription instrumentedType)Creates a new appender.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteCodeAppender.Sizeapply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)Applies this byte code appender to a type creation process.
-
-
-
Field Detail
-
REFLECTION_FACTORY_INTERNAL_NAME
public static final java.lang.String REFLECTION_FACTORY_INTERNAL_NAME
The internal name of the reflection factory class.- See Also:
- Constant Field Values
-
GET_REFLECTION_FACTORY_METHOD_NAME
public static final java.lang.String GET_REFLECTION_FACTORY_METHOD_NAME
The name of the factory method for getting hold of an instance of the reflection factory class.- See Also:
- Constant Field Values
-
GET_REFLECTION_FACTORY_METHOD_DESCRIPTOR
public static final java.lang.String GET_REFLECTION_FACTORY_METHOD_DESCRIPTOR
The descriptor of the factory method for getting hold of an instance of the reflection factory class.- See Also:
- Constant Field Values
-
NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_NAME
public static final java.lang.String NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_NAME
The name of the method for creating a new serialization constructor.- See Also:
- Constant Field Values
-
NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_DESCRIPTOR
public static final java.lang.String NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_DESCRIPTOR
The descriptor of the method for creating a new serialization constructor.- See Also:
- Constant Field Values
-
JAVA_LANG_OBJECT_DESCRIPTOR
public static final java.lang.String JAVA_LANG_OBJECT_DESCRIPTOR
The descriptor of theObjectclass.- See Also:
- Constant Field Values
-
JAVA_LANG_OBJECT_INTERNAL_NAME
public static final java.lang.String JAVA_LANG_OBJECT_INTERNAL_NAME
The internal name of theObjectclass.- See Also:
- Constant Field Values
-
JAVA_LANG_CONSTRUCTOR_INTERNAL_NAME
public static final java.lang.String JAVA_LANG_CONSTRUCTOR_INTERNAL_NAME
The internal name of theConstructorclass.- See Also:
- Constant Field Values
-
NEW_INSTANCE_METHOD_NAME
public static final java.lang.String NEW_INSTANCE_METHOD_NAME
The internal name of theConstructor.newInstance(Object...)method.- See Also:
- Constant Field Values
-
NEW_INSTANCE_METHOD_DESCRIPTOR
public static final java.lang.String NEW_INSTANCE_METHOD_DESCRIPTOR
The descriptor of theConstructor.newInstance(Object...)method.- See Also:
- Constant Field Values
-
JAVA_LANG_CLASS_INTERNAL_NAME
public static final java.lang.String JAVA_LANG_CLASS_INTERNAL_NAME
The internal name of theClassclass.- See Also:
- Constant Field Values
-
GET_DECLARED_CONSTRUCTOR_METHOD_NAME
public static final java.lang.String GET_DECLARED_CONSTRUCTOR_METHOD_NAME
The internal name of theClass.getDeclaredClasses()method.- See Also:
- Constant Field Values
-
GET_DECLARED_CONSTRUCTOR_METHOD_DESCRIPTOR
public static final java.lang.String GET_DECLARED_CONSTRUCTOR_METHOD_DESCRIPTOR
The descriptor of theClass.getDeclaredClasses()method.- See Also:
- Constant Field Values
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type that this factory method is created for.
-
-
Constructor Detail
-
Appender
private Appender(TypeDescription instrumentedType)
Creates a new appender.- Parameters:
instrumentedType- The instrumented type that the factory method is created for.
-
-
Method Detail
-
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:
applyin 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.
-
-