Package org.joni.ast

Class Node

java.lang.Object
org.joni.ast.Node
All Implemented Interfaces:
NodeType
Direct Known Subclasses:
AnchorNode, AnyCharNode, CClassNode, CTypeNode, ListNode, Node.TopNode, StateNode, StringNode

public abstract class Node extends Object implements NodeType
  • Field Details

    • parent

      public Node parent
    • type

      protected int type
  • Constructor Details

    • Node

      Node(int type)
  • Method Details

    • getType

      public final int getType()
    • getType2Bit

      public final int getType2Bit()
    • setChild

      protected void setChild(Node tgt)
    • getChild

      protected Node getChild()
    • replaceWith

      public void replaceWith(Node with)
    • getName

      public abstract String getName()
    • toString

      protected abstract String toString(int level)
    • getAddressName

      public String getAddressName()
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • pad

      protected static String pad(Object value, int level)
    • isSimple

      public final boolean isSimple()
    • newTop

      public static Node.TopNode newTop(Node root)