Package net.sf.cglib.transform
Class AbstractTransformTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- net.sf.cglib.transform.AbstractProcessTask
-
- net.sf.cglib.transform.AbstractTransformTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public abstract class AbstractTransformTask extends AbstractProcessTask
-
-
Constructor Summary
Constructors Constructor Description AbstractTransformTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.objectweb.asm.Attribute[]
attributes()
protected abstract ClassTransformer
getClassTransformer(java.lang.String[] classInfo)
returns transformation for source classprotected int
getFlags()
protected boolean
isClassFile(java.io.File file)
protected boolean
isJarFile(java.io.File file)
protected void
processFile(java.io.File file)
protected void
processJarFile(java.io.File file)
void
setVerbose(boolean verbose)
-
Methods inherited from class net.sf.cglib.transform.AbstractProcessTask
addFileset, beforeExecute, execute, getFiles
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setVerbose
public void setVerbose(boolean verbose)
-
getClassTransformer
protected abstract ClassTransformer getClassTransformer(java.lang.String[] classInfo)
returns transformation for source class- Parameters:
classInfo
- class information class name := classInfo[ 0 ] super class name := classInfo[ 1 ] interfaces := classInfo[ >1 ]
-
attributes
protected org.objectweb.asm.Attribute[] attributes()
-
processFile
protected void processFile(java.io.File file) throws java.lang.Exception
- Specified by:
processFile
in classAbstractProcessTask
- Throws:
java.lang.Exception
-
getFlags
protected int getFlags()
-
isClassFile
protected boolean isClassFile(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
processJarFile
protected void processJarFile(java.io.File file) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isJarFile
protected boolean isJarFile(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
-