/** * Check whether the frame contains a given method. * @param methodToFind the AST of the method to find. * @return true, if a method with the same name and number of parameters is found. */ private boolean containsMethod(DetailAST methodToFind) { return containsMethodDef(instanceMethods, methodToFind) || containsMethodDef(staticMethods, methodToFind); }
/** * Checks if a given name is a known static method of the class. * @param ident the IDENT ast of the method call to check. * @return true is the given ast is correspondent to a known * instance method of the class. */ public boolean hasStaticMethod(final DetailAST ident) { return containsMethodDef(staticMethods, ident); }
/** * Checks if a given name is a known instance method of the class. * @param ident the IDENT ast of the method call to check. * @return true if the given ast is correspondent to a known * instance method of the class. */ public boolean hasInstanceMethod(final DetailAST ident) { return containsMethodDef(instanceMethods, ident); }
/** * Check whether the frame contains a given method. * @param methodToFind the AST of the method to find. * @return true, if a method with the same name and number of parameters is found. */ private boolean containsMethod(DetailAST methodToFind) { return containsMethodDef(instanceMethods, methodToFind) || containsMethodDef(staticMethods, methodToFind); }
/** * Checks if a given name is a known static method of the class. * @param ident the IDENT ast of the method call to check. * @return true is the given ast is correspondent to a known * instance method of the class. */ public boolean hasStaticMethod(final DetailAST ident) { return containsMethodDef(staticMethods, ident); }
/** * Checks if a given name is a known instance method of the class. * @param ident the IDENT ast of the method call to check. * @return true if the given ast is correspondent to a known * instance method of the class. */ public boolean hasInstanceMethod(final DetailAST ident) { return containsMethodDef(instanceMethods, ident); }