Modifier and Type | Class and Description |
---|---|
public static interface | TypeInitializer.Drain
A drain for writing a type initializer. |
public static enum | TypeInitializer.None
Canonical implementation of a non-defined type initializer. |
public static class | TypeInitializer.Simple
A simple, defined type initializer that executes a given |
Modifier and Type | Method and Description |
---|---|
public TypeInitializer | Returns: A defined type initializer.The byte code appender to apply as the type initializer. byteCodeAppender)Expands this type initializer with another byte code appender. |
public boolean | Returns: true if this type initializer is defined.Indicates if this type initializer is defined. |
public TypeWriter. | Returns: A new record that represents the supplied record while also executing this type initializer.The record to wrap. recordCreates a method pool record that applies this type initializer while preserving the record that was supplied. |
expandWith | back to summary |
---|---|
public TypeInitializer expandWith(ByteCodeAppender byteCodeAppender) Expands this type initializer with another byte code appender. For this to be possible, this type initializer must be defined.
|
isDefined | back to summary |
---|---|
public boolean isDefined() Indicates if this type initializer is defined.
|
wrap | back to summary |
---|---|
public TypeWriter. Creates a method pool record that applies this type initializer while preserving the record that was supplied.
|
Modifier and Type | Class and Description |
---|---|
public static class | TypeInitializer.Drain.Default
A default implementation of a type initializer drain that creates a initializer method. |
Modifier and Type | Method and Description |
---|---|
public void | apply(ClassVisitor
The class visitor to apply the initializer to. classVisitor, TypeInitializer The type initializer to write. typeInitializer, Implementation.The corresponding implementation context. implementationContextApplies the drain. |
apply | back to summary |
---|---|
public void apply(ClassVisitor classVisitor, TypeInitializer typeInitializer, Implementation. Applies the drain.
|
Modifier and Type | Field and Description |
---|---|
protected final AnnotationValueFilter. | annotationValueFilterFactory
The annotation value filter factory to use. |
protected final TypeDescription | instrumentedType
The instrumented type. |
protected final TypeWriter. | methodPool
The method pool to use. |
Access | Constructor and Description |
---|---|
public | Default(TypeDescription
The instrumented type. instrumentedType, TypeWriter.The method pool to use. methodPool,The annotation value filter factory to use. annotationValueFilterFactoryCreates a new default type initializer drain. |
Modifier and Type | Method and Description |
---|---|
public void | apply(ClassVisitor
The class visitor to apply the initializer to. classVisitor, TypeInitializer The type initializer to write. typeInitializer, Implementation.The corresponding implementation context. implementationContextImplements net. |
annotationValueFilterFactory | back to summary |
---|---|
protected final AnnotationValueFilter. The annotation value filter factory to use. |
instrumentedType | back to summary |
---|---|
protected final TypeDescription instrumentedType The instrumented type. |
methodPool | back to summary |
---|---|
protected final TypeWriter. The method pool to use. |
Default | back to summary |
---|---|
public Default(TypeDescription instrumentedType, TypeWriter. Creates a new default type initializer drain.
|
apply | back to summary |
---|---|
public void apply(ClassVisitor classVisitor, TypeInitializer typeInitializer, Implementation. Implements net. Doc from net. Applies the drain.
|
Modifier and Type | Field and Description |
---|---|
public static final TypeInitializer. | INSTANCE
The singleton instance. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public ByteCodeAppender. | apply(MethodVisitor
The method visitor to which the byte code appender writes its code to. methodVisitor, Implementation.The implementation context of the current type creation process. implementationContext,The method that is the target of the instrumentation. instrumentedMethod)Implements net. |
public TypeInitializer | expandWith(ByteCodeAppender
The byte code appender to apply as the type initializer. byteCodeAppenderFactory)Implements net. |
public boolean | isDefined()
Implements net. |
public static TypeInitializer. | |
public static TypeInitializer. | |
public TypeWriter. | wrap(TypeWriter.
The record to wrap. recordImplements net. |
INSTANCE | back to summary |
---|---|
public static final TypeInitializer. The singleton instance. |
None | back to summary |
---|---|
private None() |
apply | back to summary |
---|---|
public ByteCodeAppender. Implements net. Doc from net. Applies this byte code appender to a type creation process.
|
expandWith | back to summary |
---|---|
public TypeInitializer expandWith(ByteCodeAppender byteCodeAppenderFactory) Implements net. Doc from net. Expands this type initializer with another byte code appender. For this to be possible, this type initializer must be defined.
|
isDefined | back to summary |
---|---|
public boolean isDefined() Implements net. Doc from net. Indicates if this type initializer is defined.
|
valueOf | back to summary |
---|---|
public static TypeInitializer. |
values | back to summary |
---|---|
public static TypeInitializer. |
wrap | back to summary |
---|---|
public TypeWriter. Implements net. Doc from net. Creates a method pool record that applies this type initializer while preserving the record that was supplied.
|
ByteCodeAppender
.
Modifier and Type | Field and Description |
---|---|
private final ByteCodeAppender | byteCodeAppender
The byte code appender to apply as the type initializer. |
Access | Constructor and Description |
---|---|
public | Simple(ByteCodeAppender
The byte code appender to apply as the type initializer. byteCodeAppender)Creates a new simple type initializer. |
Modifier and Type | Method and Description |
---|---|
public ByteCodeAppender. | apply(MethodVisitor
The method visitor to which the byte code appender writes its code to. methodVisitor, Implementation.The implementation context of the current type creation process. implementationContext,The method that is the target of the instrumentation. instrumentedMethod)Implements net. |
public TypeInitializer | expandWith(ByteCodeAppender
The byte code appender to apply as the type initializer. byteCodeAppender)Implements net. |
public boolean | isDefined()
Implements net. |
public TypeWriter. | wrap(TypeWriter.
The record to wrap. recordImplements net. |
byteCodeAppender | back to summary |
---|---|
private final ByteCodeAppender byteCodeAppender The byte code appender to apply as the type initializer. |
Simple | back to summary |
---|---|
public Simple(ByteCodeAppender byteCodeAppender) Creates a new simple type initializer.
|
apply | back to summary |
---|---|
public ByteCodeAppender. Implements net. Doc from net. Applies this byte code appender to a type creation process.
|
expandWith | back to summary |
---|---|
public TypeInitializer expandWith(ByteCodeAppender byteCodeAppender) Implements net. Doc from net. Expands this type initializer with another byte code appender. For this to be possible, this type initializer must be defined.
|
isDefined | back to summary |
---|---|
public boolean isDefined() Implements net. Doc from net. Indicates if this type initializer is defined.
|
wrap | back to summary |
---|---|
public TypeWriter. Implements net. Doc from net. Creates a method pool record that applies this type initializer while preserving the record that was supplied.
|