Class HasMethod
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.HasMethod
test for a method
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClasspath to be used when searching for classes and resources.booleaneval()Is this condition true?voidsetClassname(String classname) Set the classname attribute.voidsetClasspath(Path classpath) Set the classpath to be used when searching for classes and resources.voidSet the classpath by reference.voidSet the name of the field.voidsetIgnoreSystemClasses(boolean ignoreSystemClasses) Set whether to ignore system classes when looking for the class.voidSet the name of the method.Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
- 
Constructor Details- 
HasMethodpublic HasMethod()
 
- 
- 
Method Details- 
setClasspathSet the classpath to be used when searching for classes and resources.- Parameters:
- classpath- an Ant Path object containing the search path.
 
- 
createClasspathClasspath to be used when searching for classes and resources.- Returns:
- an empty Path instance to be configured by Ant.
 
- 
setClasspathRefSet the classpath by reference.- Parameters:
- r- a Reference to a Path instance to be used as the classpath value.
 
- 
setClassnameSet the classname attribute.- Parameters:
- classname- the name of the class to check.
 
- 
setMethodSet the name of the method.- Parameters:
- method- the name of the method to check.
 
- 
setFieldSet the name of the field.- Parameters:
- field- the name of the field to check.
 
- 
setIgnoreSystemClassespublic void setIgnoreSystemClasses(boolean ignoreSystemClasses) Set whether to ignore system classes when looking for the class.- Parameters:
- ignoreSystemClasses- a- booleanvalue.
 
- 
evalIs this condition true?.- Specified by:
- evalin interface- Condition
- Returns:
- true if the condition is true
- Throws:
- BuildException- if an error occurs
 
 
-