Class MethodGrabbingVisitor

java.lang.Object
org.apache.drill.exec.expr.fn.MethodGrabbingVisitor

public class MethodGrabbingVisitor extends Object
  • 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 specified Java.CompilationUnit.
      Parameters:
      compilationUnit - the source of the methods to collect
      clazz - type of the class to handle
      Returns:
      a map with all method names and their modified bodies.