|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.antcontrib.cpptasks.types.UndefineArgument
public class UndefineArgument
Preprocessor macro undefinition.
Constructor Summary | |
---|---|
|
UndefineArgument()
|
protected |
UndefineArgument(boolean isDefine)
|
Method Summary | |
---|---|
void |
execute()
|
java.lang.String |
getName()
Returns the name of the define |
java.lang.String |
getValue()
Returns the value of the define |
boolean |
isActive(org.apache.tools.ant.Project p)
Returns true if the define's if and unless conditions (if any) are satisfied. |
boolean |
isDefine()
Returns true if this is a define, false if an undefine. |
static UndefineArgument[] |
merge(UndefineArgument[] base,
UndefineArgument[] override)
This method returns an array of UndefineArgument and DefineArgument's by merging a base list with an override list. |
void |
setIf(java.lang.String propName)
Sets the property name for the 'if' condition. |
void |
setName(java.lang.String name)
Set the name attribute |
void |
setUnless(java.lang.String propName)
Set the property name for the 'unless' condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndefineArgument()
protected UndefineArgument(boolean isDefine)
Method Detail |
---|
public static UndefineArgument[] merge(UndefineArgument[] base, UndefineArgument[] override)
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public final java.lang.String getName()
public java.lang.String getValue()
public final boolean isActive(org.apache.tools.ant.Project p) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- throws build exception if name is not setpublic final boolean isDefine()
public final void setIf(java.lang.String propName)
propName
- property namepublic final void setName(java.lang.String name)
public final void setUnless(java.lang.String propName)
propName
- name of property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |