org.apache.tools.ant.taskdefs.condition
public class HasMethod extends ProjectComponent implements Condition
Method Summary | |
---|---|
Path | createClasspath()
Classpath to be used when searching for classes and resources.
|
boolean | eval() {@inheritDoc }. |
void | setClassname(String classname)
Set the classname attribute. |
void | setClasspath(Path classpath)
Set the classpath to be used when searching for classes and resources.
|
void | setClasspathRef(Reference r)
Set the classpath by reference.
|
void | setField(String field)
Set the name of the field. |
void | setIgnoreSystemClasses(boolean ignoreSystemClasses)
Set whether to ignore system classes when looking for the class. |
void | setMethod(String method)
Set the name of the method. |
Returns: an empty Path instance to be configured by Ant.
Parameters: classname the name of the class to check.
Parameters: classpath an Ant Path object containing the search path.
Parameters: r a Reference to a Path instance to be used as the classpath value.
Parameters: field the name of the field to check.
Parameters: ignoreSystemClasses a boolean
value.
Parameters: method the name of the method to check.