@HashCodeAndEqualsPlugin.Enhance public static class TypeInitializer.Drain.Default extends Object implements TypeInitializer.Drain
TypeInitializer.Drain.Default
Modifier and Type | Field and Description |
---|---|
protected AnnotationValueFilter.Factory |
annotationValueFilterFactory
The annotation value filter factory to use.
|
protected TypeDescription |
instrumentedType
The instrumented type.
|
protected TypeWriter.MethodPool |
methodPool
The method pool to use.
|
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
TypeWriter.MethodPool methodPool,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Creates a new default type initializer drain.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
Implementation.Context implementationContext)
Applies the drain.
|
protected final TypeDescription instrumentedType
protected final TypeWriter.MethodPool methodPool
protected final AnnotationValueFilter.Factory annotationValueFilterFactory
public Default(TypeDescription instrumentedType, TypeWriter.MethodPool methodPool, AnnotationValueFilter.Factory annotationValueFilterFactory)
instrumentedType
- The instrumented type.methodPool
- The method pool to use.annotationValueFilterFactory
- The annotation value filter factory to use.public void apply(org.objectweb.asm.ClassVisitor classVisitor, TypeInitializer typeInitializer, Implementation.Context implementationContext)
TypeInitializer.Drain
apply
in interface TypeInitializer.Drain
classVisitor
- The class visitor to apply the initializer to.typeInitializer
- The type initializer to write.implementationContext
- The corresponding implementation context.Copyright © 2014–2018. All rights reserved.