|
||||||||||
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.jomc.ant.JomcTask
org.jomc.ant.JomcModelTask
org.jomc.ant.JomcToolTask
org.jomc.ant.ClassFileProcessorTask
public class ClassFileProcessorTask
Base class for executing class file processor based tasks.
processClassFiles()
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
ClassFileProcessorTask()
Creates a new ClassFileProcessorTask instance. |
Method Summary | |
---|---|
ClassFileProcessorTask |
clone()
Creates and returns a copy of this object. |
void |
configureClassFileProcessor(ClassFileProcessor classFileProcessor)
Configures a given ClassFileProcessor instance using the properties of the instance. |
void |
executeTask()
Calls the processClassFiles method if class processing is enabled. |
Class<? extends ClassFileProcessor> |
getClassFileProcessorClass()
Gets the class of the ClassFileProcessor backing the task. |
boolean |
isClassProcessingEnabled()
Gets a flag indicating the processing of classes is enabled. |
ClassFileProcessor |
newClassFileProcessor()
Creates a new ClassFileProcessor instance setup using the properties of the instance. |
void |
processClassFiles()
Processes class files. |
void |
setClassFileProcessorClass(Class<? extends ClassFileProcessor> value)
Sets the class of the ClassFileProcessor backing the task. |
void |
setClassProcessingEnabled(boolean value)
Sets the flag indicating the processing of classes is enabled. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassFileProcessorTask()
ClassFileProcessorTask
instance.
Method Detail |
---|
public final boolean isClassProcessingEnabled()
true
, if processing of classes is enabled; false
, else.setClassProcessingEnabled(boolean)
public final void setClassProcessingEnabled(boolean value)
value
- true
, to enable processing of classes; false
, to disable processing of classes.isClassProcessingEnabled()
public final Class<? extends ClassFileProcessor> getClassFileProcessorClass()
ClassFileProcessor
backing the task.
ClassFileProcessor
backing the task.setClassFileProcessorClass(java.lang.Class)
public final void setClassFileProcessorClass(Class<? extends ClassFileProcessor> value)
ClassFileProcessor
backing the task.
value
- The new class of the ClassFileProcessor
backing the task or null
.getClassFileProcessorClass()
public ClassFileProcessor newClassFileProcessor() throws org.apache.tools.ant.BuildException
ClassFileProcessor
instance setup using the properties of the instance.
ClassFileProcessor
instance.
org.apache.tools.ant.BuildException
- if creating a new ClassFileProcessor
instance fails.getClassFileProcessorClass()
,
configureClassFileProcessor(org.jomc.tools.ClassFileProcessor)
public void configureClassFileProcessor(ClassFileProcessor classFileProcessor) throws org.apache.tools.ant.BuildException
ClassFileProcessor
instance using the properties of the instance.
classFileProcessor
- The class file processor to configure.
NullPointerException
- if classFileProcessor
is null
.
org.apache.tools.ant.BuildException
- if configuring classFileProcessor
fails.JomcToolTask.configureJomcTool(org.jomc.tools.JomcTool)
public final void executeTask() throws org.apache.tools.ant.BuildException
processClassFiles
method if class processing is enabled.
executeTask
in class JomcTask
org.apache.tools.ant.BuildException
- if processing class files fails.processClassFiles()
public void processClassFiles() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if processing class files fails.executeTask()
public ClassFileProcessorTask clone()
clone
in class JomcToolTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |