|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.HasMethod
public class HasMethod
test for a method
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
HasMethod()
|
|
| Method Summary | |
|---|---|
Path |
createClasspath()
Classpath to be used when searching for classes and resources. |
boolean |
eval()
Is this condition true? |
void |
setClassname(java.lang.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(java.lang.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(java.lang.String method)
Set the name of the method. |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HasMethod()
| Method Detail |
|---|
public void setClasspath(Path classpath)
classpath - an Ant Path object containing the search path.public Path createClasspath()
public void setClasspathRef(Reference r)
r - a Reference to a Path instance to be used as the classpath
value.public void setClassname(java.lang.String classname)
classname - the name of the class to check.public void setMethod(java.lang.String method)
method - the name of the method to check.public void setField(java.lang.String field)
field - the name of the field to check.public void setIgnoreSystemClasses(boolean ignoreSystemClasses)
ignoreSystemClasses - a boolean value.
public boolean eval()
throws BuildException
eval in interface ConditionBuildException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||