/** * Return the return type of the method this instruction operates on, * or null if not set. */ public Class getMethodReturnType() { String type = getMethodReturnName(); if (type == null) return null; return Strings.toClass(type, getClassLoader()); }
/** * Return the param types of the method this instruction operates on, * or empty array if none. */ public Class[] getMethodParamTypes() { String[] paramNames = getMethodParamNames(); Class[] params = new Class[paramNames.length]; for (int i = 0; i < paramNames.length; i++) params[i] = Strings.toClass(paramNames[i], getClassLoader()); return params; }
/** * Return the declaring type of the method this instruction operates on, * or null if not set. */ public Class getMethodDeclarerType() { String type = getMethodDeclarerName(); if (type == null) return null; return Strings.toClass(type, getClassLoader()); }
/** * Return the param types of the method this instruction operates on, * or empty array if none. */ public Class[] getMethodParamTypes() { String[] paramNames = getMethodParamNames(); Class[] params = new Class[paramNames.length]; for (int i = 0; i < paramNames.length; i++) params[i] = Strings.toClass(paramNames[i], getClassLoader()); return params; }
/** * Return the return type of the method this instruction operates on, * or null if not set. */ public Class getMethodReturnType() { String type = getMethodReturnName(); if (type == null) return null; return Strings.toClass(type, getClassLoader()); }
/** * Return the declaring type of the method this instruction operates on, * or null if not set. */ public Class getMethodDeclarerType() { String type = getMethodDeclarerName(); if (type == null) return null; return Strings.toClass(type, getClassLoader()); }
/** * Return the return type of the method this instruction operates on, * or null if not set. */ public BCClass getMethodReturnBC() { String type = getMethodReturnName(); if (type == null) return null; return getProject().loadClass(type, getClassLoader()); }
/** * Return the param types of the method this instruction operates on, * or empty array if none. */ public BCClass[] getMethodParamBCs() { String[] paramNames = getMethodParamNames(); BCClass[] params = new BCClass[paramNames.length]; for (int i = 0; i < paramNames.length; i++) params[i] = getProject().loadClass(paramNames[i], getClassLoader()); return params; }
/** * Return the return type of the method this instruction operates on, * or null if not set. */ public BCClass getMethodReturnBC() { String type = getMethodReturnName(); if (type == null) return null; return getProject().loadClass(type, getClassLoader()); }
/** * Return the declaring type of the method this instruction operates on, * or null if not set. */ public BCClass getMethodDeclarerBC() { String type = getMethodDeclarerName(); if (type == null) return null; return getProject().loadClass(type, getClassLoader()); }
/** * Return the declaring type of the method this instruction operates on, * or null if not set. */ public BCClass getMethodDeclarerBC() { String type = getMethodDeclarerName(); if (type == null) return null; return getProject().loadClass(type, getClassLoader()); }
/** * Return the param types of the method this instruction operates on, * or empty array if none. */ public BCClass[] getMethodParamBCs() { String[] paramNames = getMethodParamNames(); BCClass[] params = new BCClass[paramNames.length]; for (int i = 0; i < paramNames.length; i++) params[i] = getProject().loadClass(paramNames[i], getClassLoader()); return params; }
/** * Return the method this instruction operates on, or null if not set. */ public BCMethod getMethod() { String dec = getMethodDeclarerName(); if (dec == null) return null; BCClass bc = getProject().loadClass(dec, getClassLoader()); BCMethod[] meths = bc.getMethods(getMethodName(),getMethodParamNames()); if (meths.length == 0) return null; return meths[0]; }
/** * Return the method this instruction operates on, or null if not set. */ public BCMethod getMethod() { String dec = getMethodDeclarerName(); if (dec == null) return null; BCClass bc = getProject().loadClass(dec, getClassLoader()); BCMethod[] meths = bc.getMethods(getMethodName(),getMethodParamNames()); if (meths.length == 0) return null; return meths[0]; }