public class ParserSupports extends ProjectComponent implements Condition
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ERROR_BOTH_ATTRIBUTESerror - combined attributes not allowed | 
| static java.lang.String | ERROR_NO_ATTRIBUTESerror - missing attribute | 
| static java.lang.String | ERROR_NO_VALUEerror - no value | 
| static java.lang.String | FEATUREfeature | 
| static java.lang.String | NOT_RECOGNIZEDerror - not recognized | 
| static java.lang.String | NOT_SUPPORTEDerror - not supported | 
| static java.lang.String | PROPERTYproperty | 
description, location, project| Constructor and Description | 
|---|
| ParserSupports() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | eval()Is this condition true? | 
| boolean | evalFeature()Set a feature | 
| boolean | evalProperty()Set a property | 
| void | setFeature(java.lang.String feature)Feature to probe for. | 
| void | setProperty(java.lang.String property)Property to probe for | 
| void | setValue(java.lang.String value)Optional value to set. | 
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic static final java.lang.String ERROR_BOTH_ATTRIBUTES
public static final java.lang.String FEATURE
public static final java.lang.String PROPERTY
public static final java.lang.String NOT_RECOGNIZED
public static final java.lang.String NOT_SUPPORTED
public static final java.lang.String ERROR_NO_ATTRIBUTES
public static final java.lang.String ERROR_NO_VALUE
public void setFeature(java.lang.String feature)
feature - the feature to probe for.public void setProperty(java.lang.String property)
property - the property to probe for.public void setValue(java.lang.String value)
value - the value to set.public boolean eval()
             throws BuildException
eval in interface ConditionBuildException - if an error occurspublic boolean evalFeature()
public boolean evalProperty()