Class MemJavaFileObject

java.lang.Object
javax.tools.SimpleJavaFileObject
org.codehaus.groovy.tools.javac.MemJavaFileObject
All Implemented Interfaces:
FileObject, JavaFileObject

public class MemJavaFileObject extends SimpleJavaFileObject
Represents a Java source file in memory to compile
Since:
3.0.0
  • Constructor Details

    • MemJavaFileObject

      public MemJavaFileObject(ClassNode classNode, String src)
      Construct a MemJavaFileObject instance with given class node and source code
      Parameters:
      classNode - the class node
      src - the source code
    • MemJavaFileObject

      public MemJavaFileObject(String className, String src)
      Construct a MemJavaFileObject instance with given class name and source code
      Parameters:
      className - the class name
      src - the source code
  • Method Details