Package net.bytebuddy.dynamic.scaffold
Class TypeWriter.Default.FrameComputingClassWriter
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- org.objectweb.asm.ClassWriter
-
- net.bytebuddy.dynamic.scaffold.TypeWriter.Default.FrameComputingClassWriter
-
- Enclosing class:
- TypeWriter.Default<S>
protected static class TypeWriter.Default.FrameComputingClassWriter extends org.objectweb.asm.ClassWriter
A class writer that piggy-backs on Byte Buddy'sClassFileLocator
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FrameComputingClassWriter(int flags, TypePool typePool)
Creates a new frame computing class writer.protected
FrameComputingClassWriter(org.objectweb.asm.ClassReader classReader, int flags, TypePool typePool)
Creates a new frame computing class writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getCommonSuperClass(java.lang.String leftTypeName, java.lang.String rightTypeName)
-
Methods inherited from class org.objectweb.asm.ClassWriter
getClassLoader, newClass, newConst, newConstantDynamic, newField, newHandle, newHandle, newInvokeDynamic, newMethod, newMethodType, newModule, newNameType, newPackage, newUTF8, toByteArray, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitSource, visitTypeAnnotation
-
-
-
-
Constructor Detail
-
FrameComputingClassWriter
protected FrameComputingClassWriter(int flags, TypePool typePool)
Creates a new frame computing class writer.- Parameters:
flags
- The flags to be handed to the writer.typePool
- The type pool to use for computing stack map frames, if required.
-
FrameComputingClassWriter
protected FrameComputingClassWriter(org.objectweb.asm.ClassReader classReader, int flags, TypePool typePool)
Creates a new frame computing class writer.- Parameters:
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 for computing stack map frames, if required.
-
-