public class IsReference extends ProjectComponent implements Condition
Optionally tests whether it is of a given type/class.
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(String type)
Set the type attribute.
|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public boolean eval() throws BuildException
Condition
eval
in interface Condition
BuildException
- if an error occurspublic void setRefid(Reference r)
r
- a Reference valuepublic void setType(String type)
type
- an ant component type name