Interface Node

All Superinterfaces:
Serializable
All Known Implementing Classes:
CSSNode, SimpleNode

public interface Node extends Serializable
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    jjtAddChild(Node n, int i)
    This method tells the node to add its argument to the node's list of children.
    void
    This method is called after all the child nodes have been added.
    jjtGetChild(int i)
    This method returns a child node.
    int
     
     
    void
    This method is called after the node has been made the current node.
    void
    Set the parent node of this node
  • Method Details

    • jjtOpen

      void jjtOpen()
      This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.
    • jjtClose

      void jjtClose()
      This method is called after all the child nodes have been added.
    • jjtSetParent

      void jjtSetParent(Node n)
      Set the parent node of this node
      Parameters:
      n - parent node to set
    • jjtGetParent

      Node jjtGetParent()
      Returns:
      parent node
    • jjtAddChild

      void jjtAddChild(Node n, int i)
      This method tells the node to add its argument to the node's list of children.
      Parameters:
      n - node to add as a child
      i - zero-based index where to add the child
    • jjtGetChild

      Node jjtGetChild(int i)
      This method returns a child node. The children are numbered from zero, left to right.
      Parameters:
      i - zero-baeed child index
    • jjtGetNumChildren

      int jjtGetNumChildren()
      Returns:
      the number of children the node has. Always ≥ 0.
    • getId

      int getId()