protected class TypeWriter.Default.ForInlining.WithDecorationOnly.DecorationClassVisitor extends MetadataAwareClassVisitor implements TypeInitializer.Drain
TypeInitializer.Drain.Default
api, cv
Modifier | Constructor and Description |
---|---|
protected |
DecorationClassVisitor(ClassVisitor classVisitor,
TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
int writerFlags,
int readerFlags)
Creates a class visitor which is capable of decorating an existent class on the fly.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ClassVisitor classVisitor,
TypeInitializer typeInitializer,
Implementation.Context implementationContext)
Applies the drain.
|
protected void |
onAfterAttributes()
Invoked if the attribute visitation is about to complete.
|
protected AnnotationVisitor |
onVisitAnnotation(String descriptor,
boolean visible)
An order-sensitive invocation of
ClassVisitor.visitAnnotation(String, boolean) . |
protected void |
onVisitEnd()
An order-sensitive invocation of
ClassVisitor.visitEnd() . |
protected AnnotationVisitor |
onVisitTypeAnnotation(int typeReference,
TypePath typePath,
String descriptor,
boolean visible)
An order-sensitive invocation of
ClassVisitor.visitTypeAnnotation(int, TypePath, String, boolean) . |
void |
visit(int classFileVersionNumber,
int modifiers,
String internalName,
String genericSignature,
String superClassInternalName,
String[] interfaceTypeInternalName) |
onAfterPermittedSubclasses, onAfterRecordComponents, onNestHost, onOuterType, onVisitAttribute, onVisitField, onVisitInnerClass, onVisitMethod, onVisitNestHost, onVisitNestMember, onVisitOuterClass, onVisitPermittedSubclass, onVisitRecordComponent, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitTypeAnnotation
visitModule, visitSource
protected DecorationClassVisitor(ClassVisitor classVisitor, TypeWriter.Default.ForInlining.ContextRegistry contextRegistry, int writerFlags, int readerFlags)
classVisitor
- The underlying class visitor to which writes are delegated.contextRegistry
- A context registry to register the lazily created implementation context to.writerFlags
- The writer flags being used.readerFlags
- The reader flags being used.public void visit(int classFileVersionNumber, int modifiers, String internalName, String genericSignature, String superClassInternalName, String[] interfaceTypeInternalName)
visit
in class ClassVisitor
protected AnnotationVisitor onVisitTypeAnnotation(int typeReference, TypePath typePath, String descriptor, boolean visible)
MetadataAwareClassVisitor
ClassVisitor.visitTypeAnnotation(int, TypePath, String, boolean)
.onVisitTypeAnnotation
in class MetadataAwareClassVisitor
typeReference
- The type reference of the type annotation.typePath
- The type path of the type annotation.descriptor
- The descriptor of the annotation type.visible
- true
if the annotation is visible at runtime.null
if the annotation should be ignored.protected AnnotationVisitor onVisitAnnotation(String descriptor, boolean visible)
MetadataAwareClassVisitor
ClassVisitor.visitAnnotation(String, boolean)
.onVisitAnnotation
in class MetadataAwareClassVisitor
descriptor
- The annotation type's descriptor.visible
- true
if the annotation is visible at runtime.null
if the annotation should be ignored.protected void onAfterAttributes()
MetadataAwareClassVisitor
onAfterAttributes
in class MetadataAwareClassVisitor
protected void onVisitEnd()
MetadataAwareClassVisitor
ClassVisitor.visitEnd()
.onVisitEnd
in class MetadataAwareClassVisitor
public void apply(ClassVisitor classVisitor, TypeInitializer typeInitializer, Implementation.Context implementationContext)
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–2020. All rights reserved.