| java.lang.Object org.objectweb.speedo.generation.lib.AbstractGeneratorComponent org.objectweb.speedo.generation.enhancer.common.AbstractEnhancerComponent
All known Subclasses: org.objectweb.speedo.generation.enhancer.aware.PersistenceAwareEnhancer, org.objectweb.speedo.generation.enhancer.pc.PersistentClassEnhancer,
AbstractEnhancerComponent | abstract public class AbstractEnhancerComponent extends AbstractGeneratorComponent (Code) | | Abstract enhancer component. Provides methods to read and write classes to
or from the file system.
Adapted from loadXXX and writeXXX methods in EnhancerTool.
|
Field Summary | |
public boolean | isSrcJar Indicates whether the .class files would be found in an
archive. |
Method Summary | |
public ClassReader | loadJavaClass(boolean issrcjar, String completeName, String srcFiles, boolean remove) Loads a specified class placed indifferently in a directory or in
a .jar archive. | public ClassReader | loadJavaClass(boolean issrcjar, String completeName, String srcFiles, boolean remove, String storeDir) Loads a specified class placed indifferently in a directory or in
a .jar archive and store it into a new directory. | public void | writeJavaClass(String name, ClassWriter jclass, String srcFiles) Saves the new bytecode of the specified Java class under a specified base
directory. |
isSrcJar | public boolean isSrcJar(Code) | | Indicates whether the .class files would be found in an
archive.
|
loadJavaClass | public ClassReader loadJavaClass(boolean issrcjar, String completeName, String srcFiles, boolean remove) throws SpeedoEnhancerException(Code) | | Loads a specified class placed indifferently in a directory or in
a .jar archive.
Parameters: issrcjar - indicates whether the .class file would befound in an archive Parameters: completeName - the name of the Java class to be loaded Parameters: srcFiles - location of the .jar file or base directoryof .class file the JavaClass loaded exception: org.objectweb.speedo.generation.enhancer.common.SpeedoEnhancerException - if the file cannot be loaded |
loadJavaClass | public ClassReader loadJavaClass(boolean issrcjar, String completeName, String srcFiles, boolean remove, String storeDir) throws SpeedoEnhancerException(Code) | | Loads a specified class placed indifferently in a directory or in
a .jar archive and store it into a new directory.
Parameters: issrcjar - indicates whether the .class file would befound in an archive Parameters: completeName - the name of the Java class to be loaded Parameters: srcFiles - location of the .jar file or base directoryof .class file Parameters: storeDir - location of the base directory where the java classshould be stored the JavaClass loaded exception: org.objectweb.speedo.generation.enhancer.common.SpeedoEnhancerException - if the file cannot be loaded |
|
|