Class Regexp

java.lang.Object
com.google.re2j.Regexp

class Regexp extends Object
Regular expression abstract syntax tree. Produced by parser, used by compiler. NB, this corresponds to syntax.regexp in the Go implementation; Go's regexp is called RE2 in Java.
  • Field Details

    • EMPTY_SUBS

      static final Regexp[] EMPTY_SUBS
    • op

    • flags

      int flags
    • subs

      Regexp[] subs
    • runes

      int[] runes
    • min

      int min
    • max

      int max
    • cap

      int cap
    • name

      String name
    • namedGroups

      Map<String,Integer> namedGroups
  • Constructor Details

  • Method Details

    • reinit

      void reinit()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • quoteIfHyphen

      private static void quoteIfHyphen(StringBuilder out, int rune)
    • appendTo

      private void appendTo(StringBuilder out)
    • maxCap

      int maxCap()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object