Package org.joni.ast

Class AnchorNode

java.lang.Object
org.joni.ast.Node
org.joni.ast.AnchorNode
All Implemented Interfaces:
AnchorType, NodeType

public final class AnchorNode extends Node implements AnchorType
  • Field Details

    • type

      public int type
    • target

      public Node target
    • charLength

      public int charLength
  • Constructor Details

    • AnchorNode

      public AnchorNode(int type)
  • 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)
    • getName

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

      public String toString(int level)
      Specified by:
      toString in class Node
    • typeToString

      public String typeToString()
    • isType

      private boolean isType(int type)