Top Description Fields Constructors Methods
org.eclipse.persistence.asm

public Class EclipseLinkASMClassWriter

extends ClassWriter
Class Inheritance

EclipseLink specific ClassVisitor that generates a corresponding ClassFile structure for currently running Java VM.

Field Summary

Modifier and TypeField and Description
private ClassWriter
Inherited from org.eclipse.persistence.asm.ClassWriter:
customClassWriter

Constructor Summary

AccessConstructor and Description
public
public
EclipseLinkASMClassWriter(final int flags)

Method Summary

Modifier and TypeMethod and Description
public String
public byte[]
public <T> T
public final void
visit(final int access, final String name, final 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
,
final String
the internal of name of the super class (see org.eclipse.persistence.internal.libraries.asm.Type#getInternalName()). For interfaces, the super class is Object. May be null, but only for the Object class.
superName
,
final String[]
the internal names of the class's interfaces (see Type#getInternalName()). May be null.
interfaces
)

Overrides org.eclipse.persistence.asm.ClassWriter.visit.

Visits the header of the class with version set equal to currently running Java SE version.
public void
visit(int version, int access, String name, String signature, String superName, String[] interfaces)

Overrides org.eclipse.persistence.asm.ClassWriter.visit.

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

Overrides org.eclipse.persistence.asm.ClassWriter.visitField.

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

Overrides org.eclipse.persistence.asm.ClassWriter.visitMethod.

Inherited from org.eclipse.persistence.asm.ClassWriter:
getInternalsetCustomClassWritersetCustomClassWriterInImpltoByteArraySupervalueIntvisitAnnotationSupervisitFieldSupervisitMethodSuper

Field Detail

classWriterback to summary
private ClassWriter classWriter

Constructor Detail

EclipseLinkASMClassWriterback to summary
public EclipseLinkASMClassWriter()
EclipseLinkASMClassWriterback to summary
public EclipseLinkASMClassWriter(final int flags)

Method Detail

getCommonSuperClassback to summary
public String getCommonSuperClass(final String type1, final String type2)

Implements abstract org.eclipse.persistence.asm.ClassWriter.getCommonSuperClass.

Annotations
@Override
toByteArrayback to summary
public byte[] toByteArray()

Overrides org.eclipse.persistence.asm.ClassWriter.toByteArray.

Annotations
@Override
unwrapback to summary
public <T> T unwrap()

Implements abstract org.eclipse.persistence.asm.ClassWriter.unwrap.

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

Overrides org.eclipse.persistence.asm.ClassWriter.visit.

Visits the header of the class with version set equal to currently running Java SE version.

Parameters
access:int

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

name:String

the internal name of the class (see org.eclipse.persistence.internal.libraries.asm.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 org.eclipse.persistence.internal.libraries.asm.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
See Also
visit(int, int, String, String, String, String[])
visitback to summary
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)

Overrides org.eclipse.persistence.asm.ClassWriter.visit.

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

Overrides org.eclipse.persistence.asm.ClassWriter.visitAnnotation.

Annotations
@Override
visitEndback to summary
public void visitEnd()

Overrides org.eclipse.persistence.asm.ClassWriter.visitEnd.

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

Overrides org.eclipse.persistence.asm.ClassWriter.visitField.

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

Overrides org.eclipse.persistence.asm.ClassWriter.visitMethod.

Annotations
@Override