|
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.Objectcom.codemesh.terp.ant.compiler.AbstractCompilerOption<CppCompiler>
com.codemesh.terp.ant.compiler.cpp.LibraryOption
public class LibraryOption
An option for specifying link libraries.
| Constructor Summary | |
|---|---|
LibraryOption()
|
|
| 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.Boolean |
getDynamic()
Returns true for dynamic, false for static, and null for default linkage. |
java.lang.String |
getIf()
Returns the condition that must be satidifed to execute the implementing task. |
java.lang.Boolean |
getStatic()
Returns true for static, false for dynamic, and null for default linkage. |
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 |
setDynamic(boolean dynamic)
Specifies that dynamic linking is desired. |
void |
setIf(java.lang.String condition)
Sets a condition that must be satisfied to execute the implementing task. |
void |
setNames(java.lang.String names)
Sets a comma- or semicolon-separated list of library names to link with. |
void |
setStatic(boolean stat)
Specifies that static linking is desired. |
void |
setUnless(java.lang.String condition)
Sets a condition that must not be satisfied to execute the implementing task. |
| Methods inherited from class com.codemesh.terp.ant.compiler.AbstractCompilerOption |
|---|
expand, expand, getProject, quoteIfNecessary, setProject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LibraryOption()
| Method Detail |
|---|
public void setNames(java.lang.String names)
names - a comma- or semicolon-separated list of library namespublic void setStatic(boolean stat)
stat - true for static, false for dynamic.an alias with a negated argument.public java.lang.Boolean getStatic()
public void setDynamic(boolean dynamic)
dynamic - true for dynamic, false for static.an alias with a negated argument.public java.lang.Boolean getDynamic()
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.
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 boolean appliesTo(CppCompiler compiler,
CompilerPhase phase)
compiler - the compiler for which we're asking.phase - the compiler phase we're executing.
public java.lang.String getIf()
getIf in interface CompilerOption<CppCompiler>getIf in class AbstractCompilerOption<CppCompiler>public void setIf(java.lang.String condition)
setIf in interface CompilerOption<CppCompiler>setIf in class AbstractCompilerOption<CppCompiler>condition - a terp expression that must evaluate to a boolean value.public java.lang.String getUnless()
getUnless in interface CompilerOption<CppCompiler>getUnless in class AbstractCompilerOption<CppCompiler>public void setUnless(java.lang.String condition)
setUnless in interface CompilerOption<CppCompiler>setUnless in class AbstractCompilerOption<CppCompiler>condition - a terp expression that must evaluate to a boolean value.public boolean satisfies(TerpContext ctx)
satisfies in interface CompilerOption<CppCompiler>satisfies in class AbstractCompilerOption<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 | |||||||||