|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.objectweb.speedo.generation.lib.AbstractGeneratorComponent
org.objectweb.speedo.generation.enhancer.EnhancerComponent
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 | |
|---|---|
protected boolean |
isSrcJar
Indicates whether the .class files would be found in an
archive. |
| Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent |
|---|
debug, logger, scp |
| Constructor Summary | |
|---|---|
EnhancerComponent()
Constructs an EnhancerComponent. |
|
| Method Summary | |
|---|---|
org.objectweb.asm.ClassReader |
loadJavaClass(boolean isSrcJar,
java.lang.String completeName,
java.lang.String srcFiles,
boolean remove)
Loads a specified JDO Instance placed indifferently in a directory or in a .jar archive. |
org.objectweb.asm.ClassReader |
loadJavaClass(boolean isSrcJar,
java.lang.String completeName,
java.lang.String srcFiles,
boolean remove,
java.lang.String storeDir)
Loads a specified JDO Instance placed indifferently in a directory or in a .jar archive and store it into a new directory. |
void |
writeJavaClass(java.lang.String name,
org.objectweb.asm.ClassWriter jclass,
java.lang.String srcFiles)
Saves the new bytecode of the specified Java class under a specified base directory. |
| Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent |
|---|
getLogger, getSpeedoCompilerParameter, init, process, setLogger, setSpeedoCompilerParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean isSrcJar
.class files would be found in an
archive.
| Constructor Detail |
public EnhancerComponent()
EnhancerComponent.
| Method Detail |
public org.objectweb.asm.ClassReader loadJavaClass(boolean isSrcJar,
java.lang.String completeName,
java.lang.String srcFiles,
boolean remove)
throws SpeedoEnhancerException
.jar archive.
isSrcJar - indicates whether the .class file would be
found in an archivecompleteName - the name of the Java class to be loadedsrcFiles - location of the .jar file or base directory
of .class file
SpeedoEnhancerException - if the file cannot be loaded
public org.objectweb.asm.ClassReader loadJavaClass(boolean isSrcJar,
java.lang.String completeName,
java.lang.String srcFiles,
boolean remove,
java.lang.String storeDir)
throws SpeedoEnhancerException
.jar archive and store it into a new directory.
isSrcJar - indicates whether the .class file would be
found in an archivecompleteName - the name of the Java class to be loadedsrcFiles - location of the .jar file or base directory
of .class filestoreDir - location of the base directory where the java class
should be stored
SpeedoEnhancerException - if the file cannot be loaded
public void writeJavaClass(java.lang.String name,
org.objectweb.asm.ClassWriter jclass,
java.lang.String srcFiles)
throws SpeedoEnhancerException
jclass - the Java class that has to be savedsrcFiles - the base directory where it has to be saved
SpeedoEnhancerException - if the file cannot be written
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||