public class InstrumenterClassWriter
extends ClassWriter
Constructor and Description |
---|
InstrumenterClassWriter(ClassReader reader,
int flags,
InstrumentationClassFinder finder) |
InstrumenterClassWriter(int flags,
InstrumentationClassFinder finder) |
Modifier and Type | Method and Description |
---|---|
static int |
getAsmClassWriterFlags(int classFileVersion)
Returns version-specific
ClassWriter#ClassWriter(int) flags. |
static int |
getClassFileVersion(ClassReader reader)
Returns class file version in the
minor << 16 | major format.Warning: in classes compiled with JEP 12's --enable-preview option
the minor version is 0xFFFF , making the whole version negative. |
protected java.lang.String |
getCommonSuperClass(java.lang.String type1,
java.lang.String type2) |
public InstrumenterClassWriter(ClassReader reader, int flags, InstrumentationClassFinder finder)
public InstrumenterClassWriter(int flags, InstrumentationClassFinder finder)
protected java.lang.String getCommonSuperClass(java.lang.String type1, java.lang.String type2)
public static int getClassFileVersion(ClassReader reader)
minor << 16 | major
format.--enable-preview
option
the minor version is 0xFFFF
, making the whole version negative.public static int getAsmClassWriterFlags(int classFileVersion)
ClassWriter#ClassWriter(int)
flags.