Class RegExpTree.RegExpTreeAtom

java.lang.Object
com.google.javascript.jscomp.regex.RegExpTree
com.google.javascript.jscomp.regex.RegExpTree.RegExpTreeAtom
Direct Known Subclasses:
RegExpTree.Anchor, RegExpTree.BackReference, RegExpTree.Charset, RegExpTree.Empty, RegExpTree.NamedBackReference, RegExpTree.Text, RegExpTree.UnicodePropertyEscape, RegExpTree.WordBoundary
Enclosing class:
RegExpTree

public abstract static class RegExpTree.RegExpTreeAtom extends RegExpTree
Represents a node that never has children such as an anchor or charset.
  • Constructor Details Link icon

    • RegExpTreeAtom Link icon

      public RegExpTreeAtom()
  • Method Details Link icon

    • isCaseSensitive Link icon

      public boolean isCaseSensitive()
      Description copied from class: RegExpTree
      True if the presence or absence of an "i" flag would change the meaning of this regular expression.
      Specified by:
      isCaseSensitive in class RegExpTree
    • containsAnchor Link icon

      public boolean containsAnchor()
      Description copied from class: RegExpTree
      True if the regular expression contains an anchor : ^ or $.
      Specified by:
      containsAnchor in class RegExpTree
    • numCapturingGroups Link icon

      public final int numCapturingGroups()
      Description copied from class: RegExpTree
      The number of capturing groups.
      Specified by:
      numCapturingGroups in class RegExpTree
    • children Link icon

      public final com.google.common.collect.ImmutableList<? extends RegExpTree> children()
      Description copied from class: RegExpTree
      The children of this node.
      Specified by:
      children in class RegExpTree