Package org.apache.ofbiz.base.util
Class UtilJavaParse
java.lang.Object
org.apache.ofbiz.base.util.UtilJavaParse
Java Source Parsing Utilities
NOTE: the approach here is not the best and it may be better to use a parser, line one based on antlr, or using a Java
Bytecode parser to look at .class files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
findEndOfBlock
(int blockStart, String javaFile) findEntityUseInBlock
(int blockStart, int blockEnd, String javaFile) static String
findRealPathAndFileForClass
(String fullyQualifiedClassName) findServiceCallsInBlock
(int blockStart, int blockEnd, String javaFile) static int
findServiceMethodBlockStart
(String methodName, String javaFile) static String
stripComments
(String javaFile)
-
Method Details
-
findRealPathAndFileForClass
-
findServiceMethodBlockStart
-
findEndOfBlock
-
findServiceCallsInBlock
-
findEntityUseInBlock
-
stripComments
-