protected static class TypeWriter.Default.FrameComputingClassWriter extends ClassWriter
ClassFileLocator
to avoid class loading or look-up errors when redefining a class.
This is not available when creating a new class where automatic frame computation is however not normally a requirement.COMPUTE_FRAMES, COMPUTE_MAXS
api, cv
Modifier | Constructor and Description |
---|---|
protected |
FrameComputingClassWriter(ClassReader classReader,
int flags,
TypePool typePool)
Creates a new frame computing class writer.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getCommonSuperClass(String leftTypeName,
String rightTypeName) |
protected static ClassWriter |
of(ClassReader classReader,
int flags,
ClassFileLocator classFileLocator) |
String |
toString() |
newClass, newConst, newField, newHandle, newInvokeDynamic, newMethod, newMethodType, newNameType, newUTF8, toByteArray, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource, visitTypeAnnotation
protected FrameComputingClassWriter(ClassReader classReader, int flags, TypePool typePool)
classReader
- The class reader from which the original class is read.flags
- The flags to be handed to the writer.typePool
- The type pool to use.protected static ClassWriter of(ClassReader classReader, int flags, ClassFileLocator classFileLocator)
classReader
- The class reader from which the original class is read.flags
- The flags to be handed to the writer.classFileLocator
- The class file locator to use.protected String getCommonSuperClass(String leftTypeName, String rightTypeName)
getCommonSuperClass
in class ClassWriter
Copyright © 2014–2016. All rights reserved.