public final class OfflineInstrumenter extends OfflineInstrumenterBase
OfflineInstrumenterBase.ManifestBuilder
cha
Constructor and Description |
---|
OfflineInstrumenter(boolean reuseStackMaps)
Create an empty collection of classes to instrument.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getClassName(Object cl) |
protected Object |
makeClassFromStream(String inputName,
BufferedInputStream s) |
ClassInstrumenter |
nextClass()
Get the next class to be instrumented.
|
void |
outputModifiedClass(ClassInstrumenter out)
Update the original class with some method changes.
|
void |
outputModifiedClass(ClassInstrumenter out,
ClassWriter code)
Update the original class with some method changes.
|
protected void |
writeClassTo(Object cl,
Object mods,
OutputStream s) |
addInputClass, addInputDirectory, addInputElement, addInputJar, addInputJarEntry, addOutputJarEntry, beginTraversal, close, copyStream, endOutputJarEntry, getLastClassResourceName, getNumInputClasses, getOutputFile, internalNextClass, internalOutputModifiedClass, parseStandardArgs, setClassHierarchyProvider, setIgnore, setJARComment, setManifestBuilder, setOutputJar, setPassUnmodifiedClasses, writeUnmodifiedClasses
public OfflineInstrumenter(boolean reuseStackMaps)
protected Object makeClassFromStream(String inputName, BufferedInputStream s) throws IOException
makeClassFromStream
in class OfflineInstrumenterBase
IOException
protected String getClassName(Object cl)
getClassName
in class OfflineInstrumenterBase
protected void writeClassTo(Object cl, Object mods, OutputStream s) throws IOException
writeClassTo
in class OfflineInstrumenterBase
IOException
public ClassInstrumenter nextClass() throws IOException
IOException
public void outputModifiedClass(ClassInstrumenter out, ClassWriter code) throws IllegalStateException, IOException
IllegalStateException
IOException
public void outputModifiedClass(ClassInstrumenter out) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException