public class ClassFileProcessorTask extends JomcToolTask
processClassFiles()
createVelocityProperty
createTransformationOutputProperty
Constructor and Description |
---|
ClassFileProcessorTask()
Creates a new
ClassFileProcessorTask instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
configureJomcTool, createLocale, createTemplateParameter, createTemplateParameterResource, createVelocityProperty, createVelocityPropertyResource, getDefaultTemplateEncoding, getDefaultTemplateProfile, getImplementation, getImplementation, getIndentation, getInputEncoding, getLineSeparator, getLocale, getModule, getModule, getOutputEncoding, getSpecification, getSpecification, getTemplateEncoding, getTemplateLocation, getTemplateParameterResources, getTemplateParameters, getTemplateProfile, getVelocityProperties, getVelocityPropertyResources, isModulesProcessingRequested, postExecuteTask, preExecuteTask, setDefaultTemplateEncoding, setDefaultTemplateProfile, setImplementation, setIndentation, setInputEncoding, setLineSeparator, setModule, setOutputEncoding, setSpecification, setTemplateEncoding, setTemplateLocation, setTemplateProfile
createModuleResource, getModel, getModuleLocation, getModuleResources, getTransformerLocation, isJavaValidationEnabled, isModelObjectClasspathResolutionEnabled, isModelResourceValidationEnabled, newModelContext, setJavaValidationEnabled, setModelObjectClasspathResolutionEnabled, setModelResourceValidationEnabled, setModuleLocation, setTransformerLocation
assertKeysNotNull, assertLocationsNotNull, assertNamesNotNull, assertNotNull, createClasspath, createModelContextAttribute, createTransformationOutputProperty, createTransformationParameter, createTransformationParameterResource, execute, getClasspath, getDirectory, getIf, getModel, getModelContextAttributes, getModelContextFactoryClassName, getModletLocation, getModletSchemaSystemId, getPlatformProviderLocation, getProperties, getProviderLocation, getResource, getResources, getTransformationOutputProperties, getTransformationParameterResources, getTransformationParameters, getTransformer, getUnless, isModelProcessingEnabled, isModletResourceValidationEnabled, logMessage, logMessage, logSeparator, logValidationReport, newProjectClassLoader, setClasspath, setClasspathRef, setIf, setModel, setModelContextFactoryClassName, setModelProcessingEnabled, setModletLocation, setModletResourceValidationEnabled, setModletSchemaSystemId, setPlatformProviderLocation, setProviderLocation, setUnless
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public ClassFileProcessorTask()
ClassFileProcessorTask
instance.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
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.