Package jric.cleaner

Source Code of jric.cleaner.JavaParserWrapper

package jric.cleaner;

import java.io.File;
import java.io.IOException;

import japa.parser.JavaParser;
import japa.parser.ParseException;
import japa.parser.ast.CompilationUnit;

  /**
   * @author jwb09119
   * @date 2014/8/15
   */

public class JavaParserWrapper {
 
  public JavaParserWrapper () {
   
  }

  public void findAndReplaceIdentifier(File file, String word, String replacement) throws ParseException, IOException {
    System.out.println("\tReplacing \""+word+"\" with \""+replacement+"\"  in: "+file.getName());
   
    CompilationUnit cu = JavaParser.parse(file);
  }

}
TOP

Related Classes of jric.cleaner.JavaParserWrapper

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.