abstract syntax tree - deleting a if statements using ASTParser from a given .java file -


i have requirement of deleting if conditions given .java source file. how can perform using astparser in jdt.

public static void selectdecision(x,y) {      if()      {        /////////      }      else       {        //////////      }  } 

take @ astrewrite (org.eclipse.jdt.core.dom.rewrite.astrewrite)


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -