public class Engine
extends java.lang.Object
Constructor and Description |
---|
Engine(java.io.File jar,
java.lang.String mergeRenamePrefix) |
Engine(java.io.File jar,
java.lang.String mergeRenamePrefix,
java.lang.ClassLoader[] classLoaders) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.lang.String entry,
byte[] contents,
boolean overwrite) |
void |
addUnprocessed(byte[] inputClass,
boolean overwrite) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getJarName() |
java.util.Set<java.lang.String> |
getModificationEntries() |
java.util.Set<java.lang.String> |
getOriginalEntries() |
java.io.File |
getOriginalJar() |
int |
hashCode() |
boolean |
process(byte[] inputClass)
Process all annotations regardless of phase
|
boolean |
process(byte[] inputClass,
int phase)
Process the annotations of the class for the given phase
|
boolean |
process(org.objectweb.asm.tree.ClassNode inputClassNode,
int phase)
Process the annotations of the class for the given phase
|
void |
save(java.io.File outputFile) |
void |
setClassLoaders(java.lang.ClassLoader... classLoaders) |
public Engine(java.io.File jar, java.lang.String mergeRenamePrefix) throws java.util.jar.JarException, java.io.IOException
java.util.jar.JarException
java.io.IOException
public Engine(java.io.File jar, java.lang.String mergeRenamePrefix, java.lang.ClassLoader[] classLoaders) throws java.util.jar.JarException, java.io.IOException
java.util.jar.JarException
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getJarName()
public java.io.File getOriginalJar()
public java.util.Set<java.lang.String> getOriginalEntries()
public java.util.Set<java.lang.String> getModificationEntries()
public void setClassLoaders(java.lang.ClassLoader... classLoaders)
public void addFile(java.lang.String entry, byte[] contents, boolean overwrite) throws java.io.IOException
java.io.IOException
public void addUnprocessed(byte[] inputClass, boolean overwrite) throws java.io.IOException
java.io.IOException
public boolean process(org.objectweb.asm.tree.ClassNode inputClassNode, int phase) throws java.io.IOException
inputClass
- namedPhase
- java.io.IOException
public boolean process(byte[] inputClass, int phase) throws java.io.IOException
inputClass
- namedPhase
- java.io.IOException
public boolean process(byte[] inputClass) throws java.io.IOException
inputClass
- java.io.IOException
public void save(java.io.File outputFile) throws java.io.IOException
java.io.IOException