public class ParserSupports extends ProjectComponent implements Condition
Type | Property and Description |
---|---|
boolean |
eval
Set a property
|
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_BOTH_ATTRIBUTES
error - combined attributes not allowed
|
static String |
ERROR_NO_ATTRIBUTES
error - missing attribute
|
static String |
ERROR_NO_VALUE
error - no value
|
static String |
FEATURE
feature
|
static String |
NOT_RECOGNIZED
error - not recognized
|
static String |
NOT_SUPPORTED
error - not supported
|
static String |
PROPERTY
property
|
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(String feature)
Feature to probe for.
|
void |
setProperty(String property)
Property to probe for
|
void |
setValue(String value)
Optional value to set.
|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public static final String ERROR_BOTH_ATTRIBUTES
public static final String ERROR_NO_ATTRIBUTES
public static final String ERROR_NO_VALUE
public static final String FEATURE
public static final String NOT_RECOGNIZED
public static final String NOT_SUPPORTED
public static final String PROPERTY
public boolean eval() throws BuildException
eval
in interface Condition
BuildException
- if an error occurspublic boolean evalFeature()
public boolean evalProperty()
public void setFeature(String feature)
feature
- the feature to probe for.public void setProperty(String property)
property
- the property to probe for.public void setValue(String value)
value
- the value to set.