/** Wrap super constructor as a BshMethod. * @param name constructor name * @param con the super constructor * @param declaringNameSpace the name space */ DelayedEvalBshMethod(String name, Invocable con, NameSpace declaringNameSpace) { this(name, con.getReturnTypeDescriptor(), null, new String[con.getParameterCount()], con.getParamTypeDescriptors(), null, new BSHBlock(0), declaringNameSpace, null, null, null); this.constructor = con; this.getModifiers().addModifier("public"); this.getParameterModifiers(); declaringNameSpace.setMethod(this); this.constructorArgs = This.CONTEXT_ARGS.get().remove(name); }
doSwitchBranch(index, superClassName, superConstructors.get(i).getParamTypeDescriptors(), endLabel, labels, consArgsVar, cv); for (int i = 0; i < constructors.length; i++, index++) doSwitchBranch(index, fqClassName, constructors[i].getParamTypeDescriptors(), endLabel, labels, consArgsVar, cv);