Package org.camunda.bpm.engine.impl.juel
Class Builder
- java.lang.Object
-
- org.camunda.bpm.engine.impl.juel.Builder
-
- All Implemented Interfaces:
java.io.Serializable
,TreeBuilder
public class Builder extends java.lang.Object implements TreeBuilder
Tree builder.- Author:
- Christoph Beck
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Builder.Feature
Feature enumeration type.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.EnumSet<Builder.Feature>
features
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(Builder.Feature... features)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
Field Detail
-
features
protected final java.util.EnumSet<Builder.Feature> features
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(Builder.Feature... features)
-
-
Method Detail
-
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 interfaceTreeBuilder
- 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.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
-
-