1 18 19 package org.objectweb.jac.ide; 20 21 import org.objectweb.jac.util.Strings; 22 23 public class Constructor extends Method { 24 public String getName() { 25 26 return parent!=null ? parent.getName() : "<orphan_constructor>"; 27 } 28 29 public String getPrototype() { 30 String prototype = getGenerationName()+"("+getParametersString()+")"; 31 if (!exceptions.isEmpty()) { 32 prototype += " throws "+Strings.join(exceptions,","); 33 } 34 return prototype; 35 } 36 37 } 38 | Popular Tags |