/** * Finds a method matching the given name and parameters in this class. * * @return the method matching the given name and parameters or null */ public MethodNode getDeclaredMethod(String name, Parameter[] parameters) { for (MethodNode method : getDeclaredMethods(name)) { if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a constructor matching the given parameters in this class. * * @return the constructor matching the given parameters or null */ public ConstructorNode getDeclaredConstructor(Parameter[] parameters) { for (ConstructorNode method : getDeclaredConstructors()) { if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class * or any parent class. * * @return the method matching the given name and parameters or null */ public MethodNode getMethod(String name, Parameter[] parameters) { for (MethodNode method : getMethods(name)) { if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class. * * @return the method matching the given name and parameters or null */ public MethodNode getDeclaredMethod(String name, Parameter[] parameters) { List list = getDeclaredMethods(name); for (Iterator iter = list.iterator(); iter.hasNext();) { MethodNode method = (MethodNode) iter.next(); if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class * or any parent class. * * @return the method matching the given name and parameters or null */ public MethodNode getMethod(String name, Parameter[] parameters) { List list = getMethods(name); for (Iterator iter = list.iterator(); iter.hasNext();) { MethodNode method = (MethodNode) iter.next(); if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class. * * @return the method matching the given name and parameters or null */ public MethodNode getDeclaredMethod(String name, Parameter[] parameters) { for (MethodNode method : getDeclaredMethods(name)) { if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class. * * @return the method matching the given name and parameters or null */ public MethodNode getDeclaredMethod(String name, Parameter[] parameters) { for (Object o : getDeclaredMethods(name)) { MethodNode method = (MethodNode) o; if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class * or any parent class. * * @return the method matching the given name and parameters or null */ public MethodNode getMethod(String name, Parameter[] parameters) { for (MethodNode method : getMethods(name)) { if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class. * * @return the method matching the given name and parameters or null */ public MethodNode getDeclaredMethod(String name, Parameter[] parameters) { for (Object o : getDeclaredMethods(name)) { MethodNode method = (MethodNode) o; if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class * or any parent class. * * @return the method matching the given name and parameters or null */ public MethodNode getMethod(String name, Parameter[] parameters) { for (Object o : getMethods(name)) { MethodNode method = (MethodNode) o; if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }
/** * Finds a method matching the given name and parameters in this class * or any parent class. * * @return the method matching the given name and parameters or null */ public MethodNode getMethod(String name, Parameter[] parameters) { for (Object o : getMethods(name)) { MethodNode method = (MethodNode) o; if (parametersEqual(method.getParameters(), parameters)) { return method; } } return null; }