com.tonicsystems.jarjar.util
Class JarTransformer

java.lang.Object
  extended by com.tonicsystems.jarjar.util.JarTransformer
All Implemented Interfaces:
JarProcessor
Direct Known Subclasses:
JarTransformerChain

public abstract class JarTransformer
extends java.lang.Object
implements JarProcessor


Constructor Summary
JarTransformer()
           
 
Method Summary
 boolean process(EntryStruct struct)
          Process the entry (p.ex.
protected abstract  org.objectweb.asm.ClassVisitor transform(org.objectweb.asm.ClassVisitor v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarTransformer

public JarTransformer()
Method Detail

process

public boolean process(EntryStruct struct)
                throws java.io.IOException
Description copied from interface: JarProcessor
Process the entry (p.ex. rename the file)

Returns true if the processor has has changed the entry. In this case, the entry can be removed from the jar file in a future time. Return false for the entries which do not have been changed and there fore are not to be deleted

Specified by:
process in interface JarProcessor
Returns:
true if he process chain can continue after this process
Throws:
java.io.IOException

transform

protected abstract org.objectweb.asm.ClassVisitor transform(org.objectweb.asm.ClassVisitor v)


Copyright © 2010-2014 Sonatype, Inc.. All Rights Reserved.