Class Pattern.PatternBuilder

  • Enclosing interface:
    Pattern

    public static class Pattern.PatternBuilder
    extends java.lang.Object
    Builds a pattern expression.
    • Field Detail

      • stack

        final java.util.Stack<Pattern> stack
    • Constructor Detail

      • PatternBuilder

        private PatternBuilder()
    • Method Detail

      • build

        public Pattern build()
        Returns the resulting pattern.
      • automaton

        public Automaton automaton()
        Returns the resulting automaton.
      • seq

        public Pattern.PatternBuilder seq()
        Creates a pattern that matches the two patterns at the top of the stack in sequence, and pushes it onto the stack.
      • star

        public Pattern.PatternBuilder star()
        Creates a pattern that matches the patterns at the top of the stack zero or more times, and pushes it onto the stack.
      • plus

        public Pattern.PatternBuilder plus()
        Creates a pattern that matches the patterns at the top of the stack one or more times, and pushes it onto the stack.
      • or

        public Pattern.PatternBuilder or()
        Creates a pattern that matches either of the two patterns at the top of the stack, and pushes it onto the stack.