|
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<C>
com.codemesh.terp.ant.compiler.BooleanCompilerOption<C>
public abstract class BooleanCompilerOption<C extends Compiler>
A compiler option that has a boolean value. The boolean value is set as a string to support terp template expressions as values.
| Constructor Summary | |
|---|---|
BooleanCompilerOption()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getValue()
Returns the option's string value. |
boolean |
isEnabled(TerpContext ctx)
A convenience method that returns true if the string value expands to a string that can be converted to teh boolean value true. |
void |
setValue(java.lang.String value)
Sets the option's value. |
| Methods inherited from class com.codemesh.terp.ant.compiler.AbstractCompilerOption |
|---|
expand, expand, getIf, getProject, getUnless, quoteIfNecessary, satisfies, setIf, setProject, setUnless |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.codemesh.terp.ant.compiler.CompilerOption |
|---|
addCommands, appliesTo |
| Constructor Detail |
|---|
public BooleanCompilerOption()
| Method Detail |
|---|
public java.lang.String getValue()
public void setValue(java.lang.String value)
value - the string value.public boolean isEnabled(TerpContext ctx)
ctx - the context in which we evaluate the option value.
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||