public class IsReference extends ProjectComponent implements Condition
Optionally tests whether it is of a given type/class.
description, location, project
Constructor and Description |
---|
IsReference() |
Modifier and Type | Method and Description |
---|---|
boolean |
eval()
Is this condition true?
|
void |
setRefid(Reference r)
Set the refid attribute.
|
void |
setType(java.lang.String type)
Set the type attribute.
|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setRefid(Reference r)
r
- a Reference valuepublic void setType(java.lang.String type)
type
- an ant component type namepublic boolean eval() throws BuildException
Condition
eval
in interface Condition
BuildException
- if an error occurs