| Modifier and Type | Field and Description |
|---|---|
| private boolean | triggerAttributes
|
| private boolean | triggerNestHost
|
| private boolean | triggerOuterClass
|
| Access | Constructor and Description |
|---|---|
| protected | MetadataAwareClassVisitor(int
The API version. api, ClassVisitor The class visitor to delegate to. classVisitor)Creates a metadata aware class visitor. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected AnnotationVisitor | Returns: An annotation visitor ornull if the annotation should be ignored.The annotation type's descriptor. descriptor, boolean true if the annotation is visible at runtime.An order-sensitive invocation of |
| protected void | onVisitAttribute(Attribute
The attribute to visit. attribute)An order-sensitive invocation of |
| protected void | |
| protected FieldVisitor | Returns: A field visitor to visit the field ornull to ignore it.The field's modifiers. modifiers, String The field's internal name. internalName, String The field type's descriptor. descriptor, String The field's generic signature or signature, Object null if the field is not generic.The field's default value or value)null if no such value exists.An order-sensitive invocation of |
| protected void | onVisitInnerClass(String
The internal name of the inner class. internalName, String The internal name of the outer class or outerName, String null for a member class.The inner class's simple name or innerName, int null for an anonymous class.The inner class's source code modifiers. modifiers)An order-sensitive invocation of |
| protected MethodVisitor | Returns: A method visitor to visit the method ornull to ignore it.The method's modifiers. modifiers, String The method's internal name. internalName, String The field type's descriptor. descriptor, String The method's generic signature or signature, String[] null if the method is not generic.The method's declared exceptions or exception)null if no exceptions are declared.An order-sensitive invocation of |
| protected void | onVisitNestHost(String
The internal name of the nest host. nestHost)An order-sensitive invocation of |
| protected void | onVisitNestMember(String
The internal name of the nest member. nestMember)An order-sensitive invocation of |
| protected void | onVisitOuterClass(String
The outer class's internal name. owner, String The outer method's name or name, String null if it does not exist.The outer method's descriptor or descriptor)null if it does not exist.An order-sensitive invocation of |
| protected void | onVisitPermittedSubclass(String
The internal name of the permitted subclass. permittedSubclass)An order-sensitive invocation of |
| protected RecordComponentVisitor | Returns: The record component visitor ornull if the component should not be visited.The record component's name. name, String The record component's descriptor. descriptor, String The record component's generic signature or signature)null if the record component's type is non-generic.An order-sensitive invocation of |
| protected AnnotationVisitor | Returns: An annotation visitor ornull if the annotation should be ignored.The type reference of the type annotation. typeReference, TypePath The type path of the type annotation. typePath, String The descriptor of the annotation type. descriptor, boolean true if the annotation is visible at runtime.An order-sensitive invocation of |
| public final AnnotationVisitor | visitAnnotation(String
the class descriptor of the annotation class. descriptor, boolean true if the annotation is visible at runtime. visible)Overrides org. |
| public final void | visitAttribute(Attribute
an attribute. attribute)Overrides org. |
| public final void | visitEnd()
Overrides org. |
| public final FieldVisitor | visitField(int
the field's access flags (see modifiers, String Opcodes). This parameter also indicates if
the field is synthetic and/or deprecated.the field's name. internalName, String the field's descriptor (see descriptor, String Type).the field's signature. May be null if the field's type does not use
generic types. signature, Object the field's initial value. This parameter, which may be null if the
field does not have an initial value, must be an value)Integer, a Float, a Long, a Double or a String (for int, float, long
or String fields respectively). This parameter is only used for static
fields. Its value is ignored for non static fields, which must be initialized through
bytecode instructions in constructors or methods.Overrides org. |
| public final void | visitInnerClass(String
the internal name of C (see name, String Type#getInternalName()).the internal name of the class or interface C is a member of (see outerName, String Type#getInternalName()). Must be null if C is not the member of a class or
interface (e.g. for local or anonymous classes).the (simple) name of C. Must be null for anonymous inner classes. innerName, int the access flags of C originally declared in the source code from which this
class was compiled. modifiers)Overrides org. |
| public final MethodVisitor | visitMethod(int
the method's access flags (see modifiers, String Opcodes). This parameter also indicates if
the method is synthetic and/or deprecated.the method's name. internalName, String the method's descriptor (see descriptor, String Type).the method's signature. May be null if the method parameters,
return type and exceptions do not use generic types. signature, String[] the internal names of the method's exception classes (see exception)Type#getInternalName()). May be null.Overrides org. |
| public final void | visitNestHost(String
the internal name of the host class of the nest (see nestHost)Type#getInternalName()).Overrides org. |
| public final void | visitNestMember(String
the internal name of a nest member (see nestMember)Type#getInternalName()).Overrides org. |
| public final void | visitOuterClass(String
internal name of the enclosing class of the class (see owner, String Type#getInternalName()).the name of the method that contains the class, or null if the class is
not enclosed in a method or constructor of its enclosing class (e.g. if it is enclosed in
an instance initializer, static initializer, instance variable initializer, or class
variable initializer). name, String the descriptor of the method that contains the class, or null if
the class is not enclosed in a method or constructor of its enclosing class (e.g. if it is
enclosed in an instance initializer, static initializer, instance variable initializer, or
class variable initializer). descriptor)Overrides org. |
| public final void | visitPermittedSubclass(String
the internal name of a permitted subclass (see permittedSubclass)Type#getInternalName()).Overrides org. |
| public RecordComponentVisitor | visitRecordComponent(String
the record component name. name, String the record component descriptor (see descriptor, String Type).the record component signature. May be null if the record component
type does not use generic types. signature)Overrides org. |
| public final AnnotationVisitor | visitTypeAnnotation(int
a reference to the annotated type. The sort of this type reference must be
typeReference, TypePath TypeReference#CLASS_TYPE_PARAMETER, TypeReference#CLASS_TYPE_PARAMETER_BOUND or TypeReference#CLASS_EXTENDS. See
TypeReference.the path to the annotated type argument, wildcard bound, array element type, or
static inner type within 'typeRef'. May be null if the annotation targets
'typeRef' as a whole. typePath, String the class descriptor of the annotation class. descriptor, boolean true if the annotation is visible at runtime. visible)Overrides org. |
| triggerAttributes | back to summary |
|---|---|
| private boolean triggerAttributes
| |
| triggerNestHost | back to summary |
|---|---|
| private boolean triggerNestHost
| |
| triggerOuterClass | back to summary |
|---|---|
| private boolean triggerOuterClass
| |
| MetadataAwareClassVisitor | back to summary |
|---|---|
| protected MetadataAwareClassVisitor(int api, ClassVisitor classVisitor) Creates a metadata aware class visitor.
| |
| considerTriggerAfterAttributes | back to summary |
|---|---|
| private void considerTriggerAfterAttributes() Considers triggering the after attribute visitation. | |
| considerTriggerNestHost | back to summary |
|---|---|
| private void considerTriggerNestHost() Considers triggering a nest host visitation. | |
| considerTriggerOuterClass | back to summary |
|---|---|
| private void considerTriggerOuterClass() Considers triggering an outer class visitation. | |
| onAfterAttributes | back to summary |
|---|---|
| protected void onAfterAttributes() Invoked if the attribute visitation is about to complete. | |
| onNestHost | back to summary |
|---|---|
| protected void onNestHost() Invoked if the nest host was not visited. | |
| onOuterType | back to summary |
|---|---|
| protected void onOuterType() Invoked if the outer class was not visited. | |
| onVisitAnnotation | back to summary |
|---|---|
| protected AnnotationVisitor onVisitAnnotation(String descriptor, boolean visible) An order-sensitive invocation of
| |
| onVisitAttribute | back to summary |
|---|---|
| protected void onVisitAttribute(Attribute attribute) An order-sensitive invocation of
| |
| onVisitEnd | back to summary |
|---|---|
| protected void onVisitEnd() An order-sensitive invocation of | |
| onVisitField | back to summary |
|---|---|
| protected FieldVisitor onVisitField(int modifiers, String internalName, String descriptor, String signature, Object value) An order-sensitive invocation of
| |
| onVisitInnerClass | back to summary |
|---|---|
| protected void onVisitInnerClass(String internalName, String outerName, String innerName, int modifiers) An order-sensitive invocation of | |
| onVisitMethod | back to summary |
|---|---|
| protected MethodVisitor onVisitMethod(int modifiers, String internalName, String descriptor, String signature, String[] exception) An order-sensitive invocation of
| |
| onVisitNestHost | back to summary |
|---|---|
| protected void onVisitNestHost(String nestHost) An order-sensitive invocation of
| |
| onVisitNestMember | back to summary |
|---|---|
| protected void onVisitNestMember(String nestMember) An order-sensitive invocation of
| |
| onVisitOuterClass | back to summary |
|---|---|
| protected void onVisitOuterClass(String owner, String name, String descriptor) An order-sensitive invocation of | |
| onVisitPermittedSubclass | back to summary |
|---|---|
| protected void onVisitPermittedSubclass(String permittedSubclass) An order-sensitive invocation of
| |
| onVisitRecordComponent | back to summary |
|---|---|
| protected RecordComponentVisitor onVisitRecordComponent(String name, String descriptor, String signature) An order-sensitive invocation of
| |
| onVisitTypeAnnotation | back to summary |
|---|---|
| protected AnnotationVisitor onVisitTypeAnnotation(int typeReference, TypePath typePath, String descriptor, boolean visible) An order-sensitive invocation of
| |
| visitAnnotation | back to summary |
|---|---|
| public final AnnotationVisitor visitAnnotation(String descriptor, boolean visible) Overrides org. Doc from org. Visits an annotation of the class.
| |
| visitAttribute | back to summary |
|---|---|
| public final void visitAttribute(Attribute attribute) Overrides org. Doc from org. Visits a non standard attribute of the class. | |
| visitEnd | back to summary |
|---|---|
| public final void visitEnd() Overrides org. Doc from org. Visits the end of the class. This method, which is the last one to be called, is used to inform the visitor that all the fields and methods of the class have been visited.
| |
| visitField | back to summary |
|---|---|
| public final FieldVisitor visitField(int modifiers, String internalName, String descriptor, String signature, Object value) Overrides org. Doc from org. Visits a field of the class.
| |
| visitInnerClass | back to summary |
|---|---|
| public final void visitInnerClass(String name, String outerName, String innerName, int modifiers) Overrides org. Doc from org. Visits information about an inner class. This inner class is not necessarily a member of the class being visited. More precisely, every class or interface C which is referenced by this class and which is not a package member must be visited with this method. This class must reference its nested class or interface members, and its enclosing class, if any. See the JVMS 4.7.6 section for more details.
| |
| visitMethod | back to summary |
|---|---|
| public final MethodVisitor visitMethod(int modifiers, String internalName, String descriptor, String signature, String[] exception) Overrides org. Doc from org. Visits a method of the class. This method must return a new
| |
| visitNestHost | back to summary |
|---|---|
| public final void visitNestHost(String nestHost) Overrides org. Doc from org. Visits the nest host class of the class. A nest is a set of classes of the same package that share access to their private members. One of these classes, called the host, lists the other members of the nest, which in turn should link to the host of their nest. This method must be called only once and only if the visited class is a non-host member of a nest. A class is implicitly its own nest, so it's invalid to call this method with the visited class name as argument.
| |
| visitNestMember | back to summary |
|---|---|
| public final void visitNestMember(String nestMember) Overrides org. Doc from org. Visits a member of the nest. A nest is a set of classes of the same package that share access to their private members. One of these classes, called the host, lists the other members of the nest, which in turn should link to the host of their nest. This method must be called only if the visited class is the host of a nest. A nest host is implicitly a member of its own nest, so it's invalid to call this method with the visited class name as argument.
| |
| visitOuterClass | back to summary |
|---|---|
| public final void visitOuterClass(String owner, String name, String descriptor) Overrides org. Doc from org. Visits the enclosing class of the class. This method must be called only if this class is a local or anonymous class. See the JVMS 4.7.7 section for more details.
| |
| visitPermittedSubclass | back to summary |
|---|---|
| public final void visitPermittedSubclass(String permittedSubclass) Overrides org. Doc from org. Visits a permitted subclasses. A permitted subclass is one of the allowed subclasses of the current class.
| |
| visitRecordComponent | back to summary |
|---|---|
| public RecordComponentVisitor visitRecordComponent(String name, String descriptor, String signature) Overrides org. Doc from org. Visits a record component of the class.
| |
| visitTypeAnnotation | back to summary |
|---|---|
| public final AnnotationVisitor visitTypeAnnotation(int typeReference, TypePath typePath, String descriptor, boolean visible) Overrides org. Doc from org. Visits an annotation on a type in the class signature.
| |