|
terp - the ANT Tasks v1.3.304 |
|||||||||
| 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.types.DataType
org.apache.tools.ant.types.AbstractFileSet
org.apache.tools.ant.types.FileSet
com.codemesh.terp.ant.compiler.cpp.SourcesOption
public class SourcesOption
An option representing explicit input files for the compiler.
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.types.DataType |
|---|
checked, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
|
SourcesOption()
|
protected |
SourcesOption(org.apache.tools.ant.types.FileSet fileset)
|
| Method Summary | |
|---|---|
void |
addCommands(java.util.List<java.lang.String> commandList,
CppCompiler compiler,
CompilerPhase phase)
Adds the compiler switches repreesnted by this option to the list of switches. |
boolean |
appliesTo(CppCompiler compiler,
CompilerPhase phase)
Returns true if this compiler option applies to the given compiler and compiler phase. |
java.lang.String |
getIf()
Returns the condition that must be satidifed to execute the implementing task. |
java.lang.String |
getOptions()
Returns an optional identifier of an external compiler options instance. |
CppCompilerOptions |
getReferenced()
|
java.lang.String |
getUnless()
Returns the condition that must not be satidifed to execute the implementing task. |
boolean |
satisfies(TerpContext ctx)
Returns true if both conditions are met within the given terp context. |
void |
setIf(java.lang.String condition)
Sets a condition that must be satisfied to execute the implementing task. |
void |
setOptions(java.lang.String options)
Sets the optional identifier of an external compiler options instance to be applied to the sources represented by this element. |
void |
setUnless(java.lang.String condition)
Sets a condition that must not be satisfied to execute the implementing task. |
| Methods inherited from class org.apache.tools.ant.types.FileSet |
|---|
clone, isFilesystemOnly, iterator, size |
| Methods inherited from class org.apache.tools.ant.types.AbstractFileSet |
|---|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addReadable, addSelector, addSize, addType, addWritable, appendExcludes, appendIncludes, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, dieOnCircularReference, getDefaultexcludes, getDir, getDir, getDirectoryScanner, getDirectoryScanner, getMaxLevelsOfSymlinks, getRef, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setDir, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, setRefid, setupDirectoryScanner, setupDirectoryScanner, toString |
| Methods inherited from class org.apache.tools.ant.types.DataType |
|---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SourcesOption()
protected SourcesOption(org.apache.tools.ant.types.FileSet fileset)
| Method Detail |
|---|
public void addCommands(java.util.List<java.lang.String> commandList,
CppCompiler compiler,
CompilerPhase phase)
This method is called by the compiler repeatedly with different values for the compiler phase to account for these possibilities. Does not perform any action unless an external options identifier is set.
addCommands in interface CompilerOption<CppCompiler>commandList - the list to which the compiler switches represented
by this option (if any) are added.compiler - the compiler for which we're doing this.phase - the compiler phase in wihch we're doing this.public CppCompilerOptions getReferenced()
getReferenced in interface CppCompilerOptionsSource
public boolean appliesTo(CppCompiler compiler,
CompilerPhase phase)
appliesTo in interface CompilerOption<CppCompiler>compiler - the compiler for which we're asking.phase - the compiler phase we're executing.
public java.lang.String getOptions()
public void setOptions(java.lang.String options)
options - an identifier of a compiler options set.public java.lang.String getIf()
getIf in interface CompilerOption<CppCompiler>public void setIf(java.lang.String condition)
setIf in interface CompilerOption<CppCompiler>condition - a terp expression that must evaluate to a boolean value.public java.lang.String getUnless()
getUnless in interface CompilerOption<CppCompiler>public void setUnless(java.lang.String condition)
setUnless in interface CompilerOption<CppCompiler>condition - a terp expression that must evaluate to a boolean value.public boolean satisfies(TerpContext ctx)
CompilerOption
satisfies in interface CompilerOption<CppCompiler>ctx - the terp context in which the logical expressions are evaluated.
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||