Class JavaCodeUtils

java.lang.Object
com.javacc.output.java.JavaCodeUtils

public class JavaCodeUtils extends Object
  • Method Details

    • addGetterSetters

      public static void addGetterSetters(Node root)
      Adds getter/setter methods if a field is annotated with a "@Property" annotation
    • removeWrongJDKElements

      public static void removeWrongJDKElements(Node context, int target)
    • stripUnused

      public static void stripUnused(CompilationUnit jcu)
      Uses the DeadCodeEliminator visitor class to get rid of unused private methods and fields