`[all packages] [package ] [class hierarchy] [index]`

# public abstract class PremonJJTNode

(source file: PremonJJTNode.java)

    java.lang.Object
       |
       +----Printable
               |
               +----PremonJJTNode

The pure class interface.

    public abstract class PremonJJTNode
      extends Printable
      implements Node

  A node in the sugared abstract syntax tree.

  This AST representation is used by JJTree/JavaCC. See the JavaCC documentation for more details.

  Author:
    Alan Jeffrey
  Version: v1.0 1998/06/02

##

PremonJJTNode(int)
  Create a node.

##

children
  The children of this node.

##

childCat(int)
  Find the `i`th child of class `PremonJJTCat`.
childCon(int)
  Find the `i`th child of class `PremonJJTCon`.
childDec(int)
  Find the `i`th child of class `PremonJJTDec`.
childExp(int)
  Find the `i`th child of class `PremonJJTExp`.
childId(int)
  Find the `i`th child of class `PremonJJTId`.
childPat(int)
  Find the `i`th child of class `PremonJJTPat`.
childType(int)
  Find the `i`th child of class `PremonJJTType`.
jjtAddChild(Node, int)
  Add a node as the `i`th child.
jjtClose()
  Finalize the node.
jjtGetChild(int)
  Find the `i`th child.
jjtGetNumChildren()
  Find the number of children.
jjtGetParent()
  Returns a null pointer (this node class does not record parent information).
jjtOpen()
  Initialize the node.
jjtSetParent(Node)
  Set the parent node.

##

PremonJJTNode

    public PremonJJTNode(int i);

  Create a node.

  Parameters:
    i - identifies the class of node.

##

children

    protected PremonJJTNode[] children;

  The children of this node.

##

jjtOpen

    public void jjtOpen();

  Initialize the node.

jjtClose

    public void jjtClose();

  Finalize the node.

jjtSetParent

    public void jjtSetParent(Node n);

  Set the parent node.

  Parameters:
    n - the new parent.

jjtGetParent

    public Node jjtGetParent();

  Returns a null pointer (this node class does not record parent information).

  Returns:
    a null pointer.

jjtAddChild

    public void jjtAddChild(Node n,
                            int i);

  Add a node as the `i`th child.

  Parameters:
    n - the node to add.
    i - the index to add the node as.

jjtGetChild

    public Node jjtGetChild(int i);

  Find the `i`th child.

  Parameters:
    i - the index to find.
  Returns:
    the child.

jjtGetNumChildren

    public int jjtGetNumChildren();

  Find the number of children.

  Returns:
    the number of children.

childCat

    public PremonJJTCat childCat(int i);

  Find the `i`th child of class `PremonJJTCat`.

  Parameters:
    i - the index to look for.
  Returns:
    the child.

childExp

    public PremonJJTExp childExp(int i);

  Find the `i`th child of class `PremonJJTExp`.

  Parameters:
    i - the index to look for.
  Returns:
    the child.

childPat

    public PremonJJTPat childPat(int i);

  Find the `i`th child of class `PremonJJTPat`.

  Parameters:
    i - the index to look for.
  Returns:
    the child.

childType

    public PremonJJTType childType(int i);

  Find the `i`th child of class `PremonJJTType`.

  Parameters:
    i - the index to look for.
  Returns:
    the child.

childDec

    public PremonJJTDec childDec(int i);

  Find the `i`th child of class `PremonJJTDec`.

  Parameters:
    i - the index to look for.
  Returns:
    the child.

childCon

    public PremonJJTCon childCon(int i);

  Find the `i`th child of class `PremonJJTCon`.

  Parameters:
    i - the index to look for.
  Returns:
    the child.

childId

    public PremonJJTId childId(int i);

  Find the `i`th child of class `PremonJJTId`.

  Parameters:
    i - the index to look for.
  Returns:
    the child.

`[all packages] [package ] [class hierarchy] [index]`

###### PremonJJTNode.html