[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

Constuctor Index

O PremonJJTNode(int)
Create a node.

Variables Index

O children
The children of this node.

Methods

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

Constructors

O PremonJJTNode
public PremonJJTNode(int i);
Create a node.

Parameters:
i - identifies the class of node.

Variables

O children
protected PremonJJTNode[] children;
The children of this node.

Methods

O jjtOpen
public void jjtOpen();
Initialize the node.

O jjtClose

public void jjtClose();
Finalize the node.

O jjtSetParent

public void jjtSetParent(Node n);
Set the parent node.

Parameters:
n - the new parent.

O jjtGetParent

public Node jjtGetParent();
Returns a null pointer (this node class does not record parent information).

Returns:
a null pointer.

O jjtAddChild

public void jjtAddChild(Node n,
                        int i);
Add a node as the ith child.

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

O jjtGetChild

public Node jjtGetChild(int i);
Find the ith child.

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

O jjtGetNumChildren

public int jjtGetNumChildren();
Find the number of children.

Returns:
the number of children.

O childCat

public PremonJJTCat childCat(int i);
Find the ith child of class PremonJJTCat.

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

O childExp

public PremonJJTExp childExp(int i);
Find the ith child of class PremonJJTExp.

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

O childPat

public PremonJJTPat childPat(int i);
Find the ith child of class PremonJJTPat.

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

O childType

public PremonJJTType childType(int i);
Find the ith child of class PremonJJTType.

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

O childDec

public PremonJJTDec childDec(int i);
Find the ith child of class PremonJJTDec.

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

O childCon

public PremonJJTCon childCon(int i);
Find the ith child of class PremonJJTCon.

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

O childId

public PremonJJTId childId(int i);
Find the ith child of class PremonJJTId.

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


[all packages] [package ] [class hierarchy] [index]
PremonJJTNode.html