LexParam.java |
/** * Class LexParam - parameter of a method * @author Roman Yedokov * Implementation: object.method( parameter ) * Declaration: modifier type name ( type parameter ) {} */ package rmi.rmiSynth.lex; public class LexParam extends LexStructure { /** * Parameter to string * @param withType If we need it with type or not * @return string */ public String toString(boolean withType) { if (withType) { return getType().toString() + getName() + " "; //Declaration } else { return getName() + " "; //Implementation } } }