1 package org.objectweb.kilim.description; 2 3 import org.objectweb.kilim.KilimException; 4 5 8 9 public class TpConstructor extends TpMethod { 10 11 19 public TpConstructor(BasicElement aSupport, boolean isP, boolean isT, TemplateDescription aTemplate) throws KilimException { 20 super(aSupport, "<init>", true, isP, isT, aTemplate); 21 } 22 23 29 public TpConstructor(BasicElement aSupport, TemplateDescription aTemplate) throws KilimException { 30 this(aSupport, true, false, aTemplate); 31 } 32 33 36 public void isStatic(boolean jStatic) throws KilimException { 37 throw new KilimException("attempt to set a static qualifier on a ctor in template " + getContainingTemplate().getName()); 38 } 39 40 43 public int getKind() { 44 return KILIM.CONSTRUCTOR; 45 } 46 } 47 | Popular Tags |