Class[] params = getParameters(); if (params.length == 0) return getName() + "()"; out.append(getName()); out.append('('); boolean first = true; if (i == params.length - 1 && isVarArgs())
Class[] params = getParameters(); if (params.length == 0) uniqueName = getName(); out.append(getName()); out.append('_'); for (int i=0; i < params.length; i++) if (i == params.length - 1 && isVarArgs())
/** * @return inspected callable javadoc ref */ public String getJavadocRef() { if (javadocRef == null) { javadocRef = signature(true); } return javadocRef; }
/** * @return whether the inspected callable takes parameters */ public boolean takesParameters() { return (getParameterCount() > 0); }
/** * Get (and cache) inspected callable signature * @return inspected callable signature */ public String getSignature() { if (signature == null) { signature = signature(false); } return signature; }
/** * Returns the number of expected parameters. If this method or * constructor is declared with varargs, the vararg only counts as one. * @return inspected callable parameters count */ public int getParameterCount() { return getParameters().length; }