|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.codehaus.metaclass.tools.tasks.GenerateClassDescriptorsTask
A Task to generate Attributes descriptors from source files.
Field Summary | |
static int |
BINARY_TYPE
Constant indicating should write out binary descriptors. |
static int |
CLASS_TYPE
Constant indicating should write out binary descriptors. |
static int |
XML_TYPE
Constant indicating should write out serialized xml descriptors. |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
GenerateClassDescriptorsTask()
|
Method Summary | |
void |
addFileset(org.apache.tools.ant.types.FileSet fileSet)
Add fileset to list of files to be processed. |
void |
addFilter(PluginElement element)
Add a filter definition that will create filter to process metadata. |
void |
addFilterSet(FilterSet set)
Add a filter definition set. |
void |
addInterceptor(PluginElement element)
Add an interceptor definition that will create interceptor to process metadata. |
void |
addInterceptorSet(InterceptorSet set)
Add an interceptor definition set. |
void |
errorGeneratingDescriptor(java.lang.String classname,
java.lang.Throwable t)
Error generating descriptor for specified class. |
void |
errorWritingDescriptor(ClassDescriptor descriptor,
java.lang.Exception e)
Print error message and flag task as having failed. |
void |
execute()
Generate classes and output. |
protected ClassDescriptorCompiler |
getCompiler()
Return the Compiler used to create descriptors. |
void |
javaClassObjectsLoaded(java.util.Collection classes)
* @see CompilerMonitor#javaClassObjectsLoaded |
void |
missingSourceFile(java.io.File file)
Print error message and flag task as having failed. |
void |
postBuildDescriptorsList(java.util.Collection descriptors)
Called to notify Monitor about the set of ClassDescriptors created. |
void |
postCompactDescriptorsList(java.util.Collection descriptors)
Called to notify Monitor about the set of ClassDescriptors after compacting. |
void |
postFilterJavaClassList(java.util.Collection classes)
* @see CompilerMonitor#postFilterJavaClassList |
void |
setDestDir(java.io.File destDir)
Set the destination directory for generated files. |
void |
setFormat(FormatEnum format)
Specify the output format. |
void |
setKeepEmptyMethods(boolean keepEmptyMethods)
Set flag indicating whether Compacter should keep empty methods. |
void |
setNamespaceTagsOnly(boolean namespaceTagsOnly)
Set the flag whether non-namespaced tags are filtered out. |
void |
setProject(org.apache.tools.ant.Project project)
Setup project for task. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CLASS_TYPE
public static final int BINARY_TYPE
public static final int XML_TYPE
Constructor Detail |
public GenerateClassDescriptorsTask()
Method Detail |
public void setProject(org.apache.tools.ant.Project project)
project
- the projectpublic void addFilter(PluginElement element)
element
- the filter definitionpublic void addFilterSet(FilterSet set)
set
- a filter definition set.public void addInterceptor(PluginElement element)
element
- the interceptor definitionpublic void addInterceptorSet(InterceptorSet set)
set
- the interceptor setpublic void addFileset(org.apache.tools.ant.types.FileSet fileSet)
fileSet
- fileset to list of files to be processed.public void setDestDir(java.io.File destDir)
destDir
- the destination directory for generated files.public void setFormat(FormatEnum format)
format
- the output formatpublic void setKeepEmptyMethods(boolean keepEmptyMethods)
keepEmptyMethods
- the flagpublic void setNamespaceTagsOnly(boolean namespaceTagsOnly)
namespaceTagsOnly
- true to filter out non-namespaced tagspublic void execute()
public void errorWritingDescriptor(ClassDescriptor descriptor, java.lang.Exception e)
errorWritingDescriptor
in interface CompilerMonitor
descriptor
- the descriptore
- the exceptionpublic void missingSourceFile(java.io.File file)
missingSourceFile
in interface CompilerMonitor
file
- the source filepublic void javaClassObjectsLoaded(java.util.Collection classes)
javaClassObjectsLoaded
in interface CompilerMonitor
classes
- the list of JavaClass objectspublic void postFilterJavaClassList(java.util.Collection classes)
postFilterJavaClassList
in interface CompilerMonitor
classes
- the list of JavaClass objectspublic void postBuildDescriptorsList(java.util.Collection descriptors)
CompilerMonitor
postBuildDescriptorsList
in interface CompilerMonitor
descriptors
- the ClassDescriptors compiled.CompilerMonitor.postBuildDescriptorsList(java.util.Collection)
public void postCompactDescriptorsList(java.util.Collection descriptors)
CompilerMonitor
postCompactDescriptorsList
in interface CompilerMonitor
descriptors
- the ClassDescriptors post compacting.CompilerMonitor.postCompactDescriptorsList(java.util.Collection)
public void errorGeneratingDescriptor(java.lang.String classname, java.lang.Throwable t)
CompilerMonitor
errorGeneratingDescriptor
in interface CompilerMonitor
classname
- the name of the classt
- the errorCompilerMonitor.errorGeneratingDescriptor(java.lang.String, java.lang.Throwable)
protected final ClassDescriptorCompiler getCompiler()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |