@Override public Object visit(ASTFieldDeclaration node, Object data) { ASTType type = node.getFirstChildOfType(ASTType.class); if (type != null && getProperty(CHECK_FIELDS)) { List<ASTVariableDeclarator> fields = node.findChildrenOfType(ASTVariableDeclarator.class); for (ASTVariableDeclarator field : fields) { checkField(type, field, data); } } return data; }
for (ASTVariableDeclarator declarator : node.findChildrenOfType(ASTVariableDeclarator.class)) { ASTVariableDeclaratorId declaration = (ASTVariableDeclaratorId) declarator.jjtGetChild(0); List<NameOccurrence> usages = declaration.getUsages();
.findChildrenOfType(ASTVariableDeclarator.class)) { if (variableDeclarator.jjtGetNumChildren() > 1) { final Node variableInitializer = variableDeclarator.jjtGetChild(1);
@Override public Object visit(ASTFieldDeclaration node, Object data) { ASTType type = node.getFirstChildOfType(ASTType.class); if (type != null && getProperty(CHECK_FIELDS)) { List<ASTVariableDeclarator> fields = node.findChildrenOfType(ASTVariableDeclarator.class); for (ASTVariableDeclarator field : fields) { checkField(type, field, data); } } return data; }
for (ASTVariableDeclarator declarator : node.findChildrenOfType(ASTVariableDeclarator.class)) { ASTVariableDeclaratorId declaration = (ASTVariableDeclaratorId) declarator.jjtGetChild(0); List<NameOccurrence> usages = declaration.getUsages();
.findChildrenOfType(ASTVariableDeclarator.class)) { if (variableDeclarator.jjtGetNumChildren() > 1) { final Node variableInitializer = variableDeclarator.jjtGetChild(1);