Package org.joni.ast

Class QuantifierNode

All Implemented Interfaces:
NodeStatus, NodeType

public final class QuantifierNode extends StateNode
  • Field Details

    • 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
    • REPEAT_INFINITE

      public static final int REPEAT_INFINITE
      See Also:
  • Constructor Details

    • QuantifierNode

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

    • getType

      public int getType()
      Specified by:
      getType in class Node
    • setChild

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

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

      public void setTarget(Node tgt)
    • convertToString

      public StringNode convertToString(int flag)
    • 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()
    • set

      protected void set(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)