public class HasMethod extends ProjectComponent implements Condition
Constructor and Description |
---|
HasMethod() |
Modifier and Type | Method and Description |
---|---|
Path |
createClasspath()
Classpath to be used when searching for classes and resources.
|
boolean |
eval()
Is this condition true?
|
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.
|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public Path createClasspath()
public boolean eval() throws BuildException
eval
in interface Condition
BuildException
- if an error occurspublic void setClassname(String classname)
classname
- the name of the class to check.public void setClasspath(Path classpath)
classpath
- an Ant Path object containing the search path.public void setClasspathRef(Reference r)
r
- a Reference to a Path instance to be used as the classpath
value.public void setField(String field)
field
- the name of the field to check.public void setIgnoreSystemClasses(boolean ignoreSystemClasses)
ignoreSystemClasses
- a boolean
value.public void setMethod(String method)
method
- the name of the method to check.