Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

classgen.syntax
Class ProductionList  view ProductionList download ProductionList.java

java.lang.Object
  extended byclassgen.syntax.ProductionList
All Implemented Interfaces:
SyntaxNode

public class ProductionList
extends java.lang.Object
implements SyntaxNode


Field Summary
private  java.util.Vector items
           
private  SyntaxNode parent
           
 
Constructor Summary
ProductionList()
           
ProductionList(Production anItem)
           
 
Method Summary
 void accept(Visitor visitor)
           
 ProductionList append(Production anItem)
           
 void childrenAccept(Visitor visitor)
           
 boolean contains(Production item)
           
 Production elementAt(int index)
           
 java.util.Enumeration elements()
           
 SyntaxNode getParent()
           
 int indexOf(Production item)
           
 void insertElementAt(Production item, int index)
           
 boolean isEmpty()
           
 void removeElementAt(int index)
           
 void setElementAt(Production item, int index)
           
 void setParent(SyntaxNode parent)
           
 int size()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 java.lang.String toString(java.lang.String tab)
           
 void traverseBottomUp(Visitor visitor)
           
 void traverseTopDown(Visitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

items

private java.util.Vector items

parent

private SyntaxNode parent
Constructor Detail

ProductionList

public ProductionList()

ProductionList

public ProductionList(Production anItem)
Method Detail

append

public ProductionList append(Production anItem)

elements

public java.util.Enumeration elements()

elementAt

public Production elementAt(int index)

setElementAt

public void setElementAt(Production item,
                         int index)

insertElementAt

public void insertElementAt(Production item,
                            int index)

removeElementAt

public void removeElementAt(int index)

size

public int size()

isEmpty

public boolean isEmpty()

contains

public boolean contains(Production item)

indexOf

public int indexOf(Production item)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


toString

public java.lang.String toString(java.lang.String tab)

getParent

public SyntaxNode getParent()
Specified by:
getParent in interface SyntaxNode

setParent

public void setParent(SyntaxNode parent)
Specified by:
setParent in interface SyntaxNode

accept

public void accept(Visitor visitor)
Specified by:
accept in interface SyntaxNode

childrenAccept

public void childrenAccept(Visitor visitor)
Specified by:
childrenAccept in interface SyntaxNode

traverseTopDown

public void traverseTopDown(Visitor visitor)
Specified by:
traverseTopDown in interface SyntaxNode

traverseBottomUp

public void traverseBottomUp(Visitor visitor)
Specified by:
traverseBottomUp in interface SyntaxNode