|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.bootstrap.InterceptorGeneratorHelper
public class InterceptorGeneratorHelper
Support class for dumping outputs of InterceptorGenerator
to file.
InterceptorGenerator
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_SAVE_LOCATION
|
static java.lang.String |
SAVE_GENERATED_INTERCEPTORS_OPTION
Name of system property which cause saving of generated interceptors to files Property can contain values: class|bytecode|both |
static java.lang.String |
SAVE_LOCATION_INTERCEPTORS_OPTION
Location where generated files are stored. |
Constructor Summary | |
---|---|
InterceptorGeneratorHelper()
|
Method Summary | |
---|---|
static void |
dumpClass(java.io.File outputFile,
org.objectweb.asm.ClassWriter cw)
Dump given class bytecode into a java file. |
static void |
dumpClass(java.lang.String className,
org.objectweb.asm.ClassWriter cw)
Dump given class represented by ClassWriter to java file and to class file. |
static void |
saveClass(java.io.File outputFile,
org.objectweb.asm.ClassWriter cw)
Save given class to a file. |
static boolean |
saveInterceptors()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SAVE_GENERATED_INTERCEPTORS_OPTION
public static final java.lang.String SAVE_LOCATION_INTERCEPTORS_OPTION
public static final java.lang.String DEFAULT_SAVE_LOCATION
Constructor Detail |
---|
public InterceptorGeneratorHelper()
Method Detail |
---|
public static void dumpClass(java.lang.String className, org.objectweb.asm.ClassWriter cw)
ClassWriter
to java file and to class file.
Location, where the file are stored, is saved in system property sofa.interceptors.save.location.
className
- name of classcw
- representation of classpublic static void dumpClass(java.io.File outputFile, org.objectweb.asm.ClassWriter cw) throws java.io.FileNotFoundException
outputFile
- output java filecw
- representation of class
java.io.FileNotFoundException
public static void saveClass(java.io.File outputFile, org.objectweb.asm.ClassWriter cw) throws java.io.IOException
outputFile
- output class filecw
- representation of class
java.io.IOException
public static boolean saveInterceptors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |