ppg.atoms
Class Production
java.lang.Object
ppg.atoms.Production
- All Implemented Interfaces:
- Unparse
public class Production
- extends java.lang.Object
- implements Unparse
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Production
public Production(Nonterminal lhs,
java.util.Vector rhs)
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