ASTName name = st.getFirstDescendantOfType(ASTName.class); if (name != null && st.equals(name.getNthParent(5)) && "fail".equals(name.getImage())) { found.add(name); continue; ASTThrowStatement th = st.getFirstDescendantOfType(ASTThrowStatement.class); if (th != null && st.equals(th.getNthParent(2))) { found.add(th);
if (blocks.size() == 1) { final ASTBlockStatement block = blocks.get(0); final ASTClassOrInterfaceType type = block.getFirstDescendantOfType(ASTClassOrInterfaceType.class); if (type != null && type.getType() != null && type.getNthParent(9).equals(node) && type.getType().equals(CloneNotSupportedException.class)) {
.getFirstDescendantOfType(ASTLocalVariableDeclaration.class); if (varDecl == null) { criticalStatements = true;
for (ASTBlockStatement b : bs) { if (b.hasDescendantOfType(ASTAssignmentOperator.class)) { final ASTStatementExpression se = b.getFirstDescendantOfType(ASTStatementExpression.class); if (se == null || !(se.jjtGetChild(0) instanceof ASTPrimaryExpression)) { continue;
ASTName name = st.getFirstDescendantOfType(ASTName.class); if (name != null && st.equals(name.getNthParent(5)) && "fail".equals(name.getImage())) { found.add(name); continue; ASTThrowStatement th = st.getFirstDescendantOfType(ASTThrowStatement.class); if (th != null && st.equals(th.getNthParent(2))) { found.add(th);
if (blocks.size() == 1) { final ASTBlockStatement block = blocks.get(0); final ASTClassOrInterfaceType type = block.getFirstDescendantOfType(ASTClassOrInterfaceType.class); if (type != null && type.getType() != null && type.getNthParent(9).equals(node) && type.getType().equals(CloneNotSupportedException.class)) {
.getFirstDescendantOfType(ASTLocalVariableDeclaration.class); if (varDecl == null) { criticalStatements = true;
for (ASTBlockStatement b : bs) { if (b.hasDescendantOfType(ASTAssignmentOperator.class)) { final ASTStatementExpression se = b.getFirstDescendantOfType(ASTStatementExpression.class); if (se == null || !(se.jjtGetChild(0) instanceof ASTPrimaryExpression)) { continue;