org.apache.tools.ant.taskdefs.condition
Class HasMethod
- Cloneable, Condition
test for a method
createClasspath
public Path createClasspath()
Classpath to be used when searching for classes and resources.
- an empty Path instance to be configured by Ant.
setClassname
public void setClassname(String classname)
Set the classname attribute.
classname - the name of the class to check.
setClasspath
public void setClasspath(Path classpath)
Set the classpath to be used when searching for classes and resources.
classpath - an Ant Path object containing the search path.
setClasspathRef
public void setClasspathRef(Reference r)
Set the classpath by reference.
r - a Reference to a Path instance to be used as the classpath
value.
setField
public void setField(String field)
Set the name of the field.
field - the name of the field to check.
setIgnoreSystemClasses
public void setIgnoreSystemClasses(boolean ignoreSystemClasses)
Set whether to ignore system classes when looking for the class.
ignoreSystemClasses - a boolean value.
setMethod
public void setMethod(String method)
Set the name of the method.
method - the name of the method to check.