protected class TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor extends MetadataAwareClassVisitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.AttributeObtainingFieldVisitor
A field visitor that obtains all attributes and annotations of a field that is found in the
class file but that discards all code.
|
protected class |
TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.AttributeObtainingMethodVisitor
A method visitor that obtains all attributes and annotations of a method that is found in the
class file but that discards all code.
|
protected class |
TypeWriter.Default.ForInlining.WithFullProcessing.RedefinitionClassVisitor.CodePreservingMethodVisitor
A method visitor that preserves the code of a method in the class file by copying it into a rebased
method while copying all attributes and annotations to the actual method.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RedefinitionClassVisitor(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
int writerFlags,
int readerFlags)
Creates a class visitor which is capable of redefining an existent class on the fly.
|
| Modifier and Type | Method and Description |
|---|---|
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 org.objectweb.asm.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 org.objectweb.asm.FieldVisitor |
onVisitField(int modifiers,
String internalName,
String descriptor,
String genericSignature,
Object defaultValue)
An order-sensitive invocation of
ClassVisitor.visitField(int, String, String, String, Object). |
protected void |
onVisitInnerClass(String internalName,
String outerName,
String innerName,
int modifiers)
An order-sensitive invocation of
ClassVisitor.visitInnerClass(String, String, String, int). |
protected org.objectweb.asm.MethodVisitor |
onVisitMethod(int modifiers,
String internalName,
String descriptor,
String genericSignature,
String[] exceptionName)
An order-sensitive invocation of
ClassVisitor.visitMethod(int, String, String, String, String[]). |
protected void |
onVisitNestHost(String nestHost)
An order-sensitive invocation of
ClassVisitor.visitNestHost(String). |
protected void |
onVisitNestMember(String nestMember)
An order-sensitive invocation of
ClassVisitor.visitNestMember(String). |
protected void |
onVisitOuterClass(String owner,
String name,
String descriptor)
An order-sensitive invocation of
ClassVisitor.visitOuterClass(String, String, String). |
protected org.objectweb.asm.AnnotationVisitor |
onVisitTypeAnnotation(int typeReference,
org.objectweb.asm.TypePath typePath,
String descriptor,
boolean visible)
An order-sensitive invocation of
ClassVisitor.visitTypeAnnotation(int, TypePath, String, boolean). |
protected org.objectweb.asm.MethodVisitor |
redefine(MethodDescription methodDescription,
boolean abstractOrigin,
int modifiers,
String genericSignature)
Redefines a given method if this is required by looking up a potential implementation from the
TypeWriter.MethodPool. |
protected org.objectweb.asm.FieldVisitor |
redefine(TypeWriter.FieldPool.Record record,
Object defaultValue,
int modifiers,
String genericSignature)
Redefines a field using the given explicit field pool record and default value.
|
void |
visit(int classFileVersionNumber,
int modifiers,
String internalName,
String genericSignature,
String superClassInternalName,
String[] interfaceTypeInternalName) |
onVisitAttribute, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitNestHost, visitNestMember, visitOuterClass, visitTypeAnnotationprotected RedefinitionClassVisitor(org.objectweb.asm.ClassVisitor classVisitor,
TypeInitializer typeInitializer,
TypeWriter.Default.ForInlining.ContextRegistry contextRegistry,
int writerFlags,
int readerFlags)
classVisitor - The underlying class visitor to which writes are delegated.typeInitializer - The type initializer to apply.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 org.objectweb.asm.ClassVisitorprotected void onVisitNestHost(String nestHost)
MetadataAwareClassVisitorClassVisitor.visitNestHost(String).onVisitNestHost in class MetadataAwareClassVisitornestHost - The internal name of the nest host.protected void onNestHost()
MetadataAwareClassVisitoronNestHost in class MetadataAwareClassVisitorprotected void onVisitOuterClass(String owner, String name, String descriptor)
MetadataAwareClassVisitorClassVisitor.visitOuterClass(String, String, String).onVisitOuterClass in class MetadataAwareClassVisitorowner - The outer class's internal name.name - The outer method's name or null if it does not exist.descriptor - The outer method's descriptor or null if it does not exist.protected void onOuterType()
MetadataAwareClassVisitoronOuterType in class MetadataAwareClassVisitorprotected void onAfterAttributes()
MetadataAwareClassVisitoronAfterAttributes in class MetadataAwareClassVisitorprotected org.objectweb.asm.AnnotationVisitor onVisitTypeAnnotation(int typeReference,
org.objectweb.asm.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 org.objectweb.asm.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 org.objectweb.asm.FieldVisitor onVisitField(int modifiers,
String internalName,
String descriptor,
String genericSignature,
Object defaultValue)
MetadataAwareClassVisitorClassVisitor.visitField(int, String, String, String, Object).onVisitField in class MetadataAwareClassVisitormodifiers - The field's modifiers.internalName - The field's internal name.descriptor - The field type's descriptor.genericSignature - The field's generic signature or null if the field is not generic.defaultValue - The field's default value or null if no such value exists.null to ignore it.protected org.objectweb.asm.FieldVisitor redefine(TypeWriter.FieldPool.Record record, Object defaultValue, int modifiers, String genericSignature)
record - The field pool value to apply during visitation of the existing field.defaultValue - The default value to write onto the field which might be null.modifiers - The original modifiers of the transformed field.genericSignature - The field's original generic signature which can be null.protected org.objectweb.asm.MethodVisitor onVisitMethod(int modifiers,
String internalName,
String descriptor,
String genericSignature,
String[] exceptionName)
MetadataAwareClassVisitorClassVisitor.visitMethod(int, String, String, String, String[]).onVisitMethod in class MetadataAwareClassVisitormodifiers - The method's modifiers.internalName - The method's internal name.descriptor - The field type's descriptor.genericSignature - The method's generic signature or null if the method is not generic.exceptionName - The method's declared exceptions or null if no exceptions are declared.null to ignore it.protected org.objectweb.asm.MethodVisitor redefine(MethodDescription methodDescription, boolean abstractOrigin, int modifiers, String genericSignature)
TypeWriter.MethodPool.methodDescription - The method being considered for redefinition.abstractOrigin - true if the original method is abstract, i.e. there is no implementation to preserve.modifiers - The original modifiers of the transformed method.genericSignature - The method's original generic signature which can be null.protected void onVisitInnerClass(String internalName, String outerName, String innerName, int modifiers)
MetadataAwareClassVisitorClassVisitor.visitInnerClass(String, String, String, int).onVisitInnerClass in class MetadataAwareClassVisitorinternalName - The internal name of the inner class.outerName - The internal name of the outer class.innerName - The inner class's simple name or null for an anonymous class.modifiers - The inner class's source code modifiers.protected void onVisitNestMember(String nestMember)
MetadataAwareClassVisitorClassVisitor.visitNestMember(String).onVisitNestMember in class MetadataAwareClassVisitornestMember - The internal name of the nest member.protected void onVisitEnd()
MetadataAwareClassVisitorClassVisitor.visitEnd().onVisitEnd in class MetadataAwareClassVisitorCopyright © 2014–2019. All rights reserved.