KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ppg > cmds > ExtendCmd


1 package ppg.cmds;
2
3 import ppg.atoms.*;
4 import ppg.util.*;
5
6 public class ExtendCmd implements Command
7 {
8     private Production prod;
9     
10     public ExtendCmd(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("ExtendCmd");
20         cw.allowBreak(2);
21         prod.unparse(cw);
22         //cw.end();
23
}
24     
25 }
26
Popular Tags