Package org.apache.drill.exec.expr.fn
Class MethodGrabbingVisitor
java.lang.Object
org.apache.drill.exec.expr.fn.MethodGrabbingVisitor
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMethods
(org.codehaus.janino.Java.CompilationUnit compilationUnit, Class<?> clazz) Creates a map with all method names and their modified bodies from specifiedJava.CompilationUnit
.
-
Method Details
-
getMethods
public static Map<String,String> getMethods(org.codehaus.janino.Java.CompilationUnit compilationUnit, Class<?> clazz) Creates a map with all method names and their modified bodies from specifiedJava.CompilationUnit
.- Parameters:
compilationUnit
- the source of the methods to collectclazz
- type of the class to handle- Returns:
- a map with all method names and their modified bodies.
-