public class Builder extends java.lang.Object implements TreeBuilder
| Modifier and Type | Class and Description |
|---|---|
static class |
Builder.Feature
Feature enumeration type.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.EnumSet<Builder.Feature> |
features |
| Constructor and Description |
|---|
Builder() |
Builder(Builder.Feature... features) |
| Modifier and Type | Method and Description |
|---|---|
Tree |
build(java.lang.String expression)
Parse expression.
|
protected Parser |
createParser(java.lang.String expression) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isEnabled(Builder.Feature feature) |
static void |
main(java.lang.String[] args)
Dump out abstract syntax tree for a given expression
|
protected final java.util.EnumSet<Builder.Feature> features
public Builder()
public Builder(Builder.Feature... features)
public boolean isEnabled(Builder.Feature feature)
true iff the specified feature is supported.public Tree build(java.lang.String expression) throws TreeBuilderException
build in interface TreeBuilderexpression - expression stringTreeBuilderExceptionprotected Parser createParser(java.lang.String expression)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static void main(java.lang.String[] args)
args - array with one element, containing the expression string