/** * Return the names of all the parameter types for this method. The names * will be returned in a form suitable for a {@link Class#forName} call. * * @see BCMember#getDescriptor */ public String[] getParamNames() { // get the parameter types from the descriptor String[] params = getProject().getNameCache().getDescriptorParamNames (getDescriptor()); // convert them to external form for (int i = 0; i < params.length; i++) params[i] = getProject().getNameCache().getExternalForm(params[i], false); return params; }
/** * Return the names of all the parameter types for this method. The names * will be returned in a form suitable for a {@link Class#forName} call. * * @see BCMember#getDescriptor */ public String[] getParamNames() { // get the parameter types from the descriptor String[] params = getProject().getNameCache().getDescriptorParamNames (getDescriptor()); // convert them to external form for (int i = 0; i < params.length; i++) params[i] = getProject().getNameCache().getExternalForm(params[i], false); return params; }
/** * Return the param types of the method this instruction operates on, * or empty array if none. */ public String[] getMethodParamNames() { if (_index == 0) return new String[0]; String desc = null; if (getOpcode() == Constants.INVOKEDYNAMIC) { InvokeDynamicEntry ide = (InvokeDynamicEntry) getPool().getEntry(_index); desc = ide.getNameAndTypeEntry().getDescriptorEntry().getValue(); } else { ComplexEntry entry = (ComplexEntry) getPool().getEntry(_index); desc = entry.getNameAndTypeEntry().getDescriptorEntry(). getValue(); } NameCache cache = getProject().getNameCache(); String[] names = cache.getDescriptorParamNames(desc); for (int i = 0; i < names.length; i++) names[i] = cache.getExternalForm(names[i], false); return names; }
/** * Return the param types of the method this instruction operates on, * or empty array if none. */ public String[] getMethodParamNames() { if (_index == 0) return new String[0]; String desc = null; if (getOpcode() == Constants.INVOKEDYNAMIC) { InvokeDynamicEntry ide = (InvokeDynamicEntry) getPool().getEntry(_index); desc = ide.getNameAndTypeEntry().getDescriptorEntry().getValue(); } else { ComplexEntry entry = (ComplexEntry) getPool().getEntry(_index); desc = entry.getNameAndTypeEntry().getDescriptorEntry(). getValue(); } NameCache cache = getProject().getNameCache(); String[] names = cache.getDescriptorParamNames(desc); for (int i = 0; i < names.length; i++) names[i] = cache.getExternalForm(names[i], false); return names; }