Top Inners Fields Constructors Methods
org.eclipse.persistence.asm.internal.platform.ow2

public Class ClassVisitorImpl

extends ClassVisitor
Class Inheritance
Imports
org.eclipse.persistence.asm.AnnotationVisitor, .FieldVisitor, .MethodVisitor, org.objectweb.asm.ClassVisitor

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private ClassVisitorImpl.OW2ClassVisitor
Inherited from org.eclipse.persistence.asm.ClassVisitor:
customClassVisitorcv

Constructor Summary

AccessConstructor and Description
public
ClassVisitorImpl(final int api)

public
ClassVisitorImpl(final int api, final ClassVisitor classVisitor)

Method Summary

Modifier and TypeMethod and Description
public <T> T
public void
visit(int version, int access, String name, String signature, String superName, String[] interfaces)

Overrides org.eclipse.persistence.asm.ClassVisitor.visit.

public AnnotationVisitor
public void
public FieldVisitor
visitField(int access, String name, String desc, String signature, Object value)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitField.

public FieldVisitor
public MethodVisitor
visitMethod(int access, String name, String desc, String signature, String[] exceptions)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitMethod.

public MethodVisitor
visitMethodSuper(int access, String name, String desc, String signature, String[] exceptions)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitMethodSuper.

public void
visitSuper(int version, int access, String name, String signature, String superName, String[] interfaces)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitSuper.

Inherited from org.eclipse.persistence.asm.ClassVisitor:
setCustomClassVisitorvisitAnnotation

Field Detail

ow2ClassVisitorback to summary
private ClassVisitorImpl.OW2ClassVisitor ow2ClassVisitor

Constructor Detail

ClassVisitorImplback to summary
public ClassVisitorImpl(final int api)
ClassVisitorImplback to summary
public ClassVisitorImpl(final int api, final ClassVisitor classVisitor)

Method Detail

unwrapback to summary
public <T> T unwrap()

Overrides org.eclipse.persistence.asm.ClassVisitor.unwrap.

Annotations
@Override
visitback to summary
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)

Overrides org.eclipse.persistence.asm.ClassVisitor.visit.

Annotations
@Override
visitAnnotationSuperback to summary
public AnnotationVisitor visitAnnotationSuper(final String descriptor, final boolean visible)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitAnnotationSuper.

Annotations
@Override
visitEndback to summary
public void visitEnd()

Overrides org.eclipse.persistence.asm.ClassVisitor.visitEnd.

Annotations
@Override
visitFieldback to summary
public FieldVisitor visitField(int access, String name, String desc, String signature, Object value)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitField.

Annotations
@Override
visitFieldSuperback to summary
public FieldVisitor visitFieldSuper(int access, String name, String desc, String signature, Object value)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitFieldSuper.

Annotations
@Override
visitMethodback to summary
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitMethod.

Annotations
@Override
visitMethodSuperback to summary
public MethodVisitor visitMethodSuper(int access, String name, String desc, String signature, String[] exceptions)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitMethodSuper.

Annotations
@Override
visitSuperback to summary
public void visitSuper(int version, int access, String name, String signature, String superName, String[] interfaces)

Overrides org.eclipse.persistence.asm.ClassVisitor.visitSuper.

Annotations
@Override
org.eclipse.persistence.asm.internal.platform.ow2 back to summary

private Class ClassVisitorImpl.OW2ClassVisitor

extends ClassVisitor
Class Inheritance

Field Summary

Inherited from org.objectweb.asm.ClassVisitor:
apicv

Constructor Summary

AccessConstructor and Description
public
OW2ClassVisitor(final int api)

public
OW2ClassVisitor(final int api, final ClassVisitor classVisitor)

Method Summary

Modifier and TypeMethod and Description
public void
visit(int
the class version. The minor version is stored in the 16 most significant bits, and the major version in the 16 least significant bits.
version
,
int
the class's access flags (see Opcodes). This parameter also indicates if the class is deprecated Opcodes#ACC_DEPRECATED or a record Opcodes#ACC_RECORD.
access
,
String
the internal name of the class (see Type#getInternalName()).
name
,
String
the signature of this class. May be null if the class is not a generic one, and does not extend or implement generic classes or interfaces.
signature
,
String
the internal of name of the super class (see Type#getInternalName()). For interfaces, the super class is Object. May be null, but only for the Object class.
superName
,
String[]
the internal names of the class's interfaces (see Type#getInternalName()). May be null.
interfaces
)

Overrides org.objectweb.asm.ClassVisitor.visit.

Visits the header of the class.
public AnnotationVisitor
visitAnnotation(final String
the class descriptor of the annotation class.
descriptor
,
final boolean
true if the annotation is visible at runtime.
visible
)

Overrides org.objectweb.asm.ClassVisitor.visitAnnotation.

Visits an annotation of the class.
public AnnotationVisitor
visitAnnotationSuper(final String descriptor, final boolean visible)

public void
visitEnd()

Overrides org.objectweb.asm.ClassVisitor.visitEnd.

Visits the end of the class.
public FieldVisitor
visitField(int
the field's access flags (see Opcodes). This parameter also indicates if the field is synthetic and/or deprecated.
access
,
String
the field's name.
name
,
String
the field's descriptor (see Type).
desc
,
String
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 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.
value
)

Overrides org.objectweb.asm.ClassVisitor.visitField.

Visits a field of the class.
public FieldVisitor
visitFieldSuper(int access, String name, String desc, String signature, Object value)

public MethodVisitor
visitMethod(int
the method's access flags (see Opcodes). This parameter also indicates if the method is synthetic and/or deprecated.
access
,
String
the method's name.
name
,
String
the method's descriptor (see Type).
desc
,
String
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 Type#getInternalName()). May be null.
exceptions
)

Overrides org.objectweb.asm.ClassVisitor.visitMethod.

Visits a method of the class.
public MethodVisitor
visitMethodSuper(int access, String name, String desc, String signature, String[] exceptions)

public void
visitSuper(int version, int access, String name, String signature, String superName, String[] interfaces)

Inherited from org.objectweb.asm.ClassVisitor:
getDelegatevisitAttributevisitInnerClassvisitModulevisitNestHostvisitNestMembervisitOuterClassvisitPermittedSubclassvisitRecordComponentvisitSourcevisitTypeAnnotation

Constructor Detail

OW2ClassVisitorback to summary
public OW2ClassVisitor(final int api)
OW2ClassVisitorback to summary
public OW2ClassVisitor(final int api, final ClassVisitor classVisitor)

Method Detail

visitback to summary
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)

Overrides org.objectweb.asm.ClassVisitor.visit.

Doc from org.objectweb.asm.ClassVisitor.visit.

Visits the header of the class.

Parameters
version:int

the class version. The minor version is stored in the 16 most significant bits, and the major version in the 16 least significant bits.

access:int

the class's access flags (see Opcodes). This parameter also indicates if the class is deprecated Opcodes#ACC_DEPRECATED or a record Opcodes#ACC_RECORD.

name:String

the internal name of the class (see Type#getInternalName()).

signature:String

the signature of this class. May be null if the class is not a generic one, and does not extend or implement generic classes or interfaces.

superName:String

the internal of name of the super class (see Type#getInternalName()). For interfaces, the super class is Object. May be null, but only for the Object class.

interfaces:String[]

the internal names of the class's interfaces (see Type#getInternalName()). May be null.

Annotations
@Override
visitAnnotationback to summary
public AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible)

Overrides org.objectweb.asm.ClassVisitor.visitAnnotation.

Doc from org.objectweb.asm.ClassVisitor.visitAnnotation.

Visits an annotation of the class.

Parameters
descriptor:String

the class descriptor of the annotation class.

visible:boolean

true if the annotation is visible at runtime.

Returns:AnnotationVisitor

a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.

Annotations
@Override
visitAnnotationSuperback to summary
public AnnotationVisitor visitAnnotationSuper(final String descriptor, final boolean visible)
visitEndback to summary
public void visitEnd()

Overrides org.objectweb.asm.ClassVisitor.visitEnd.

Doc from org.objectweb.asm.ClassVisitor.visitEnd.

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.

Annotations
@Override
visitFieldback to summary
public FieldVisitor visitField(int access, String name, String desc, String signature, Object value)

Overrides org.objectweb.asm.ClassVisitor.visitField.

Doc from org.objectweb.asm.ClassVisitor.visitField.

Visits a field of the class.

Parameters
access:int

the field's access flags (see Opcodes). This parameter also indicates if the field is synthetic and/or deprecated.

name:String

the field's name.

desc:String

the field's descriptor (see Type).

signature:String

the field's signature. May be null if the field's type does not use generic types.

value:Object

the field's initial value. This parameter, which may be null if the field does not have an initial value, must be an 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.

Returns:FieldVisitor

a visitor to visit field annotations and attributes, or null if this class visitor is not interested in visiting these annotations and attributes.

Annotations
@Override
visitFieldSuperback to summary
public FieldVisitor visitFieldSuper(int access, String name, String desc, String signature, Object value)
visitMethodback to summary
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)

Overrides org.objectweb.asm.ClassVisitor.visitMethod.

Doc from org.objectweb.asm.ClassVisitor.visitMethod.

Visits a method of the class. This method must return a new MethodVisitor instance (or null) each time it is called, i.e., it should not return a previously returned visitor.

Parameters
access:int

the method's access flags (see Opcodes). This parameter also indicates if the method is synthetic and/or deprecated.

name:String

the method's name.

desc:String

the method's descriptor (see Type).

signature:String

the method's signature. May be null if the method parameters, return type and exceptions do not use generic types.

exceptions:String[]

the internal names of the method's exception classes (see Type#getInternalName()). May be null.

Returns:MethodVisitor

an object to visit the byte code of the method, or null if this class visitor is not interested in visiting the code of this method.

Annotations
@Override
visitMethodSuperback to summary
public MethodVisitor visitMethodSuper(int access, String name, String desc, String signature, String[] exceptions)
visitSuperback to summary
public void visitSuper(int version, int access, String name, String signature, String superName, String[] interfaces)