de.odysseus.el.tree.impl
Class Builder
java.lang.Object
de.odysseus.el.tree.impl.Builder
- All Implemented Interfaces:
- TreeBuilder, java.io.Serializable
public class Builder
- extends java.lang.Object
- implements TreeBuilder
Tree builder.
- Author:
- Christoph Beck
- See Also:
- Serialized Form
Nested Class Summary |
static class |
Builder.Feature
Feature enumeration type. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
features
protected final java.util.EnumSet<Builder.Feature> features
Builder
public Builder()
Builder
public Builder(Builder.Feature... features)
isEnabled
public boolean isEnabled(Builder.Feature feature)
- Returns:
true
iff the specified feature is supported.
build
public Tree build(java.lang.String expression)
throws TreeBuilderException
- Parse expression.
- Specified by:
build
in interface TreeBuilder
- Parameters:
expression
- expression string
- Returns:
- tree corresponding to the given expression
- Throws:
TreeBuilderException
createParser
protected Parser createParser(java.lang.String expression)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
main
public static void main(java.lang.String[] args)
- Dump out abstract syntax tree for a given expression
- Parameters:
args
- array with one element, containing the expression string