Class 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.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • isEnabled

        public boolean isEnabled​(Builder.Feature feature)
        Returns:
        true iff the specified feature is supported.
      • 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