|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.metaclass.tools.compiler.ClassDescriptorCompiler
A bean that can create MetaClass descriptors by processing Java Source files with qdox.
Constructor Summary | |
ClassDescriptorCompiler()
|
Method Summary | |
void |
addFilter(JavaClassFilter filter)
Add a filter to process metadata. |
void |
addInterceptor(QDoxAttributeInterceptor interceptor)
Add an interceptor to process metadata. |
void |
addSourceFile(java.io.File sourceFile)
Add a sourceFile to process. |
void |
execute()
Generate classes and output. |
MetaClassIO |
getMetaClassIO()
Return the MetaClassIO used to serialize descriptors. |
protected void |
processSourceFiles()
Output the ClassDescriptors that are not filtered out. |
void |
setDestDir(java.io.File destDir)
Set the destination directory for generated files. |
void |
setKeepEmptyMethods(boolean keepEmptyMethods)
Set flag indicating whether Compacter should keep empty methods. |
void |
setMetaClassIO(MetaClassIO metaClassIO)
Set the IO object used to write descriptors. |
void |
setMonitor(CompilerMonitor monitor)
Set the monitor to receive messages about compiler operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassDescriptorCompiler()
Method Detail |
public void setKeepEmptyMethods(boolean keepEmptyMethods)
keepEmptyMethods
- the flagpublic void setMonitor(CompilerMonitor monitor)
monitor
- the monitor.public void addSourceFile(java.io.File sourceFile)
sourceFile
- the sourceFilepublic void addFilter(JavaClassFilter filter)
filter
- the filterpublic void addInterceptor(QDoxAttributeInterceptor interceptor)
interceptor
- the interceptorpublic void setDestDir(java.io.File destDir)
destDir
- the destination directory for generated files.public void setMetaClassIO(MetaClassIO metaClassIO)
metaClassIO
- the IO object used to write descriptors.public MetaClassIO getMetaClassIO()
public void execute() throws java.lang.Exception
java.lang.Exception
- if unable to compile descriptorsprotected void processSourceFiles()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |