net.sf.antcontrib.cpptasks
public abstract class ProcessorDef extends DataType
Field Summary | |
---|---|
protected boolean | newEnvironment |
Constructor Summary | |
---|---|
protected | ProcessorDef()
Constructor
|
Method Summary | |
---|---|
protected void | addConfiguredProcessorArg(CommandLineArgument arg)
Adds a |
protected void | addConfiguredProcessorParam(ProcessorParam param)
Adds a |
void | addEnv(Variable var)
Add an environment variable to the launched process. |
void | addFileset(ConditionalFileSet srcSet)
Adds a source file set.
|
protected static Boolean | booleanValueOf(boolean val)
Returns the equivalent Boolean object for the specified value
Equivalent to Boolean.valueOf in JDK 1.4
|
ProcessorConfiguration | createConfiguration(CCTask task, LinkType linkType, ProcessorDef baseDef, TargetDef targetPlatform, VersionInfo versionInfo)
Creates a configuration
|
CommandLineArgument[] | getActiveProcessorArgs()
Prepares list of processor arguments ( compilerarg, linkerarg ) that
are active for the current project settings.
|
ProcessorParam[] | getActiveProcessorParams()
Prepares list of processor arguments ( compilerarg, linkerarg) that
are active for the current project settings.
|
boolean | getDebug(ProcessorDef[] defaultProviders, int index)
Gets boolean indicating debug build
|
protected ProcessorDef[] | getDefaultProviders(ProcessorDef baseDef)
Creates an chain of objects which provide default values in descending
order of significance.
|
ProcessorDef | getExtends()
Gets the ProcessorDef specified by the extends attribute
|
boolean | getInherit()
Gets the inherit attribute. |
boolean | getLibtool() |
protected Processor | getProcessor()
Obtains the appropriate processor (compiler, linker)
|
protected Processor | getProcessor(LinkType linkType)
Obtains the appropriate processor (compiler, linker) based on the
LinkType.
|
boolean | getRebuild(ProcessorDef[] defaultProviders, int index)
Gets a boolean value indicating whether all targets must be rebuilt
regardless of dependency analysis.
|
boolean | hasFileSets()
Returns true if the processor definition contains embedded file set
definitions
|
boolean | isActive()
Determine if this def should be used.
|
void | setClassname(String className)
Sets the class name for the adapter. |
void | setDebug(boolean debug)
If set true, all targets will be built for debugging.
|
void | setDescription(String desc)
Sets a description of the current data type. |
void | setExtends(Reference extendsRef)
Specifies that this element extends the element with id attribute with a
matching value. |
void | setId(String id)
Sets an id that can be used to reference this element.
|
void | setIf(String propName)
Sets the property name for the 'if' condition.
|
void | setInherit(boolean inherit)
If inherit has the default value of true, defines, includes and other
settings from the containing cc element will be inherited.
|
void | setLibtool(boolean libtool)
Set use of libtool.
|
void | setNewenvironment(boolean newenv)
Do not propagate old environment when new environment variables are
specified. |
protected void | setProcessor(Processor processor)
Sets the processor
|
void | setRebuild(boolean rebuild)
If set true, all targets will be unconditionally rebuilt.
|
void | setRefid(Reference ref)
Specifies that this element should behave as if the content of the
element with the matching id attribute was inserted at this location. |
void | setUnless(String propName)
Set the property name for the 'unless' condition.
|
void | visitFiles(FileVisitor visitor)
This method calls the FileVistor's visit function for every file in the
processors definition
|
Parameters: arg command line argument, must not be null
Throws: NullPointerException if arg is null BuildException if this definition is a reference
Parameters: param command line argument, must not be null
Throws: NullPointerException if arg is null BuildException if this definition is a reference
Parameters: srcSet Fileset identifying files that should be processed by this processor
Throws: BuildException if processor definition is a reference
Parameters: val boolean value
Returns: Boolean.TRUE or Boolean.FALSE
Parameters: baseDef reference to def from containing cc element, may be null
Returns: configuration
Returns: active compiler arguments
Returns: active compiler arguments
Parameters: defaultProviders array of ProcessorDef's in descending priority index index to first element in array that should be considered
Returns: if true, built targets for debugging
Parameters: baseDef corresponding ProcessorDef from CCTask, will be last element in array unless inherit = false
Returns: default provider array
Returns: Base ProcessorDef, null if extends is not specified
Throws: BuildException if reference is not same type object
Returns: if true then properties from the containing
Returns: processor
Returns: processor
Parameters: defaultProviders array of ProcessorDef's in descending priority index index to first element in array that should be considered
Returns: true if all targets should be rebuilt.
Returns: true if processor definition contains embedded filesets
Returns: true if processor is active
Throws: IllegalStateException if not properly initialized BuildException if "if" or "unless" variable contains suspicious values "false" or "no" which indicates possible confusion
Parameters: className full class name
Parameters: debug true if targets should be built for debugging
Throws: BuildException if processor definition is a reference
Parameters: extendsRef Reference to the extended processor definition.
Throws: BuildException if this processor definition is a reference
Parameters: id id
Parameters: propName name of property
Parameters: inherit new value
Throws: BuildException if processor definition is a reference
Parameters: libtool If true, use libtool.
Parameters: processor processor, may not be null.
Throws: BuildException if ProcessorDef is a reference NullPointerException if processor is null
Parameters: rebuild if true, rebuild all targets.
Throws: BuildException if processor definition is a reference
Parameters: ref Reference to other element
Parameters: propName name of property
Parameters: visitor object whose visit method is called for every file