Package org.joni.ast

Class QuantifierNode

All Implemented Interfaces:
NodeStatus, NodeType

public final class QuantifierNode extends StateNode
  • Field Details

    • REPEAT_INFINITE

      public static final int REPEAT_INFINITE
      See Also:
    • target

      public Node target
    • lower

      public int lower
    • upper

      public int upper
    • greedy

      public boolean greedy
    • targetEmptyInfo

      public int targetEmptyInfo
    • headExact

      public Node headExact
    • nextHeadExact

      public Node nextHeadExact
    • isRefered

      public boolean isRefered
    • combExpCheckNum

      public int combExpCheckNum
    • REDUCE_TABLE

      static final QuantifierNode.ReduceType[][] REDUCE_TABLE
    • PopularQStr

      static final String[] PopularQStr
    • ReduceQStr

      static final String[] ReduceQStr
  • Constructor Details

    • QuantifierNode

      public QuantifierNode(int lower, int upper, boolean byNumber)
  • Method Details

    • setChild

      protected void setChild(Node child)
      Overrides:
      setChild in class Node
    • getChild

      protected Node getChild()
      Overrides:
      getChild in class Node
    • setTarget

      public void setTarget(Node tgt)
    • getName

      public String getName()
      Specified by:
      getName in class Node
    • toString

      public String toString(int level)
      Overrides:
      toString in class StateNode
    • isAnyCharStar

      public boolean isAnyCharStar()
    • popularNum

      protected int popularNum()
    • copy

      protected void copy(QuantifierNode other)
    • reduceNestedQuantifier

      public void reduceNestedQuantifier(QuantifierNode other)
    • setQuantifier

      public int setQuantifier(Node tgt, boolean group, ScanEnvironment env, byte[] bytes, int p, int end)
    • isRepeatInfinite

      public static boolean isRepeatInfinite(int n)