/Users/lyon/j4p/src/net/rmi/rmiSynth/lex/LexParam.java

1    /** 
2     * Class LexParam - parameter of a method 
3     * @author Roman Yedokov 
4     * Implementation:  object.method( parameter ) 
5     * Declaration: modifier type name ( type parameter ) {} 
6     */ 
7     
8    package net.rmi.rmiSynth.lex; 
9     
10    
11   public class LexParam extends LexStructure { 
12    
13       /** 
14        * Parameter to string 
15        * 
16        * @param withType If we need it with type or 
17        *                 not 
18        * @return string 
19        */ 
20       public String toString(boolean withType) { 
21           if (withType) { 
22               return getType().toString() + 
23                      getName() + 
24                      " "; //Declaration 
25           } else { 
26               return getName() + " ";                         //Implementation 
27           } 
28       } 
29   } 
30