protected class TypeWriter.Default.ForInlining.WithDecorationOnly.DecorationClassVisitor extends MetadataAwareClassVisitor implements TypeInitializer.Drain
TypeInitializer.Drain.Defaultapi, 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 void |
onNestHost()
Invoked if the nest host was not visited.
|
protected void |
onOuterType()
Invoked if the outer class was not visited.
|
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) |
onVisitAttribute, onVisitField, onVisitInnerClass, onVisitMethod, onVisitNestHost, onVisitNestMember, onVisitOuterClass, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitNestHost, visitNestMember, visitOuterClass, visitTypeAnnotationvisitModule, visitSourceprotected 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 ClassVisitorprotected void onNestHost()
MetadataAwareClassVisitoronNestHost in class MetadataAwareClassVisitorprotected void onOuterType()
MetadataAwareClassVisitoronOuterType in class MetadataAwareClassVisitorprotected AnnotationVisitor onVisitTypeAnnotation(int typeReference, TypePath typePath, String descriptor, boolean visible)
MetadataAwareClassVisitorClassVisitor.visitTypeAnnotation(int, TypePath, String, boolean).onVisitTypeAnnotation in class MetadataAwareClassVisitortypeReference - 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)
MetadataAwareClassVisitorClassVisitor.visitAnnotation(String, boolean).onVisitAnnotation in class MetadataAwareClassVisitordescriptor - The annotation type's descriptor.visible - true if the annotation is visible at runtime.null if the annotation should be ignored.protected void onAfterAttributes()
MetadataAwareClassVisitoronAfterAttributes in class MetadataAwareClassVisitorprotected void onVisitEnd()
MetadataAwareClassVisitorClassVisitor.visitEnd().onVisitEnd in class MetadataAwareClassVisitorpublic void apply(ClassVisitor classVisitor, TypeInitializer typeInitializer, Implementation.Context implementationContext)
apply in interface TypeInitializer.DrainclassVisitor - The class visitor to apply the initializer to.typeInitializer - The type initializer to write.implementationContext - The corresponding implementation context.Copyright © 2014–2019. All rights reserved.