Package com.javacc.output.java
Class JavaCodeUtils
- java.lang.Object
-
- com.javacc.output.java.JavaCodeUtils
-
public class JavaCodeUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddGetterSetters(Node root)Adds getter/setter methods if a field is annotated with a "@Property" annotationstatic voidremoveWrongJDKElements(Node context, int target)static voidstripUnused(CompilationUnit jcu)Uses the DeadCodeEliminator visitor class to get rid of unused private methods and fields
-
-
-
Method Detail
-
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
-
-