ppg.atoms
Class Production

java.lang.Object
  extended by ppg.atoms.Production
All Implemented Interfaces:
Unparse

public class Production
extends java.lang.Object
implements Unparse


Constructor Summary
Production(Nonterminal lhs, java.util.Vector rhs)
           
 
Method Summary
 void add(Production prod)
           
 void addToRHS(java.util.Vector rhsPart)
           
 java.lang.Object clone()
           
 void drop(Production prod)
           
 Nonterminal getLHS()
           
 java.util.Vector getRHS()
           
static boolean isSameProduction(java.util.Vector u, java.util.Vector v)
           
 void setLHS(Nonterminal nt)
           
 java.lang.String toString()
           
 void union(Production prod)
           
 void union(java.util.Vector prodList)
           
 void unparse(CodeWriter cw)
          Write a human-readable representation of the parse tree
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Production

public Production(Nonterminal lhs,
                  java.util.Vector rhs)
Method Detail

getLHS

public Nonterminal getLHS()

setLHS

public void setLHS(Nonterminal nt)

getRHS

public java.util.Vector getRHS()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

drop

public void drop(Production prod)

isSameProduction

public static boolean isSameProduction(java.util.Vector u,
                                       java.util.Vector v)

union

public void union(Production prod)

union

public void union(java.util.Vector prodList)

add

public void add(Production prod)

addToRHS

public void addToRHS(java.util.Vector rhsPart)

unparse

public void unparse(CodeWriter cw)
Description copied from interface: Unparse
Write a human-readable representation of the parse tree

Specified by:
unparse in interface Unparse

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object