I have a requirement of deleting all if conditions from a given .java source file. How can I perform this using a ASTParser in JDT.
public static void selectDecision(x,y)
{
if()
{
/////////
}
else
{
//////////
}
}
Take a look at ASTRewrite (org.eclipse.jdt.core.dom.rewrite.ASTRewrite)