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, customClassWriterFields inherited from class org.eclipse.persistence.asm.ClassVisitor
customClassVisitor, cv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommonSuperClass(String type1, String type2) byte[]<T> Tunwrap()voidvisit(int version, int access, String name, String signature, String superName, String[] interfaces) final voidVisits the header of the class withversionset equal to currently running Java SE version.visitAnnotation(String descriptor, boolean visible) voidvisitEnd()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, visitMethodSuperMethods 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 withversionset equal to currently running Java SE version.- Overrides:
visitin classClassWriter- Parameters:
access- the class's access flags (seeOpcodes). This parameter also indicates if the class is deprecatedOpcodes.ACC_DEPRECATEDor 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 theObjectclass.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:
visitin classClassWriter
-
visitAnnotation
- Overrides:
visitAnnotationin classClassWriter
-
visitField
public FieldVisitor visitField(int access, String name, String descriptor, String signature, Object value) - Overrides:
visitFieldin classClassWriter
-
visitMethod
public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) - Overrides:
visitMethodin classClassWriter
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classClassWriter
-
toByteArray
public byte[] toByteArray()- Overrides:
toByteArrayin classClassWriter
-
getCommonSuperClass
- Specified by:
getCommonSuperClassin classClassWriter
-
unwrap
public <T> T unwrap()- Specified by:
unwrapin classClassWriter
-