Module org.eclipse.persistence.core
Package org.eclipse.persistence.asm
Class EclipseLinkASMClassWriter
java.lang.Object
org.eclipse.persistence.asm.ClassVisitor
org.eclipse.persistence.asm.ClassWriter
org.eclipse.persistence.asm.EclipseLinkASMClassWriter
EclipseLink specific
ClassVisitor
that generates a corresponding ClassFile structure
for currently running Java VM.-
Field Summary
Fields inherited from class org.eclipse.persistence.asm.ClassWriter
COMPUTE_FRAMES, customClassWriter
Fields inherited from class org.eclipse.persistence.asm.ClassVisitor
customClassVisitor, cv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCommonSuperClass
(String type1, String type2) byte[]
<T> T
unwrap()
void
visit
(int version, int access, String name, String signature, String superName, String[] interfaces) final void
Visits the header of the class withversion
set equal to currently running Java SE version.visitAnnotation
(String descriptor, boolean visible) void
visitEnd()
visitField
(int access, String name, String descriptor, String signature, Object value) visitMethod
(int access, String name, String descriptor, String signature, String[] exceptions) Methods inherited from class org.eclipse.persistence.asm.ClassWriter
getInternal, setCustomClassWriter, setCustomClassWriterInImpl, toByteArraySuper, visitAnnotationSuper, visitFieldSuper, visitMethodSuper
Methods inherited from class org.eclipse.persistence.asm.ClassVisitor
setCustomClassVisitor, visitSuper
-
Constructor Details
-
EclipseLinkASMClassWriter
public EclipseLinkASMClassWriter() -
EclipseLinkASMClassWriter
public EclipseLinkASMClassWriter(int flags)
-
-
Method Details
-
visit
public final void visit(int access, String name, String signature, String superName, String[] interfaces) Visits the header of the class withversion
set equal to currently running Java SE version.- Overrides:
visit
in classClassWriter
- Parameters:
access
- the class's access flags (seeOpcodes
). This parameter also indicates if the class is deprecatedOpcodes.ACC_DEPRECATED
or a recordOpcodes.ACC_RECORD
.name
- the internal name of the class (seeType.getInternalName()
).signature
- 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
- the internal of name of the super class (seeType.getInternalName()
). For interfaces, the super class isObject
. May be null, but only for theObject
class.interfaces
- the internal names of the class's interfaces (seeType.getInternalName()
). May be null.- See Also:
-
visit
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) - Overrides:
visit
in classClassWriter
-
visitAnnotation
- Overrides:
visitAnnotation
in classClassWriter
-
visitField
public FieldVisitor visitField(int access, String name, String descriptor, String signature, Object value) - Overrides:
visitField
in classClassWriter
-
visitMethod
public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) - Overrides:
visitMethod
in classClassWriter
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classClassWriter
-
toByteArray
public byte[] toByteArray()- Overrides:
toByteArray
in classClassWriter
-
getCommonSuperClass
- Specified by:
getCommonSuperClass
in classClassWriter
-
unwrap
public <T> T unwrap()- Specified by:
unwrap
in classClassWriter
-