コード例 #1
0
 @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;
 }
コード例 #2
0
 private boolean isInInnerClassOrInterface(ASTMethodDeclaration md) {
   ASTClassOrInterfaceDeclaration p =
       md.getFirstParentOfType(ASTClassOrInterfaceDeclaration.class);
   return p != null && p.isNested();
 }