KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ppg > cmds > NewProdCmd


1 package ppg.cmds;
2
3 import ppg.atoms.*;
4 import ppg.util.*;
5
6 public class NewProdCmd implements Command
7 {
8     private Production prod;
9     
10     public NewProdCmd(Production p)
11     {
12         prod = p;
13     }
14
15     public Production getProduction() { return prod; }
16     
17     public void unparse(CodeWriter cw) {
18         //cw.begin(0);
19
cw.write("NewProdCmd");
20         cw.allowBreak(0);
21         prod.unparse(cw);
22         //cw.end();
23
}
24 }
25
Popular Tags