@Override public Object visit(ASTMethodDeclaration node, Object data) { final ASTFormalParameters params = node.getFirstDescendantOfType(ASTFormalParameters.class); ASTFormalParameter[] arrs = getArrays(params); if (arrs != null) { checkAll(data, arrs, node.findDescendantsOfType(ASTBlockStatement.class)); } return data; }
private boolean isInInnerClassOrInterface(ASTMethodDeclaration md) { ASTClassOrInterfaceDeclaration p = md.getFirstParentOfType(ASTClassOrInterfaceDeclaration.class); return p != null && p.isNested(); }