org.apache.tools.ant.taskdefs.condition
public class IsReference extends ProjectComponent implements Condition
Optionally tests whether it is of a given type/class.
Since: Ant 1.6
Method Summary | |
---|---|
boolean | eval() |
void | setRefid(Reference r)
Set the refid attribute.
|
void | setType(String type)
Set the type attribute. |
Returns: true if the reference exists and if type is set, if the reference is the same type
Throws: BuildException if an error occurs
Parameters: r a Reference value
Parameters: type an ant component type name