/** * Clear all parameters from this method. */ public void clearParams() { setParams((String[]) null); }
/** * Clear all parameters from this method. */ public void clearParams() { setParams((String[]) null); }
/** * Set the parameter type of this method. * * @see BCMember#setDescriptor */ public void setParams(Class[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
/** * Set the parameter type of this method. * * @see BCMember#setDescriptor */ public void setParams(Class[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
/** * Set the parameter type of this method. * * @see BCMember#setDescriptor */ public void setParams(BCClass[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
/** * Set the parameter type of this method. * * @see BCMember#setDescriptor */ public void setParams(BCClass[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
/** * Add a parameter type to this method. */ public void addParam(String type) { String[] origParams = getParamNames(); String[] params = new String[origParams.length + 1]; for (int i = 0; i < origParams.length; i++) params[i] = origParams[i]; params[origParams.length] = type; setParams(params); }
/** * Add a parameter type to this method. */ public void addParam(String type) { String[] origParams = getParamNames(); String[] params = new String[origParams.length + 1]; for (int i = 0; i < origParams.length; i++) params[i] = origParams[i]; params[origParams.length] = type; setParams(params); }
/** * Remove a parameter from this method. */ public void removeParam(int pos) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length - 1]; for (int i = 0, index = 0; i < origParams.length; i++) if (i != pos) params[index++] = origParams[i]; setParams(params); }
/** * Remove a parameter from this method. */ public void removeParam(int pos) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length - 1]; for (int i = 0, index = 0; i < origParams.length; i++) if (i != pos) params[index++] = origParams[i]; setParams(params); }
/** * Add a parameter type to this method. * * @see java.util.List#add(int,Object) */ public void addParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length + 1]; for (int i = 0, index = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[index++]; } setParams(params); }
/** * Change a parameter type of this method. * * @see java.util.List#set(int,Object) */ public void setParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length]; for (int i = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[i]; } setParams(params); }
/** * Add a parameter type to this method. * * @see java.util.List#add(int,Object) */ public void addParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length + 1]; for (int i = 0, index = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[index++]; } setParams(params); }
/** * Change a parameter type of this method. * * @see java.util.List#set(int,Object) */ public void setParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length]; for (int i = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[i]; } setParams(params); }