Class StringWrappingJavaFile

java.lang.Object
javax.tools.SimpleJavaFileObject
org.jctools.util.StringWrappingJavaFile
All Implemented Interfaces:
FileObject, JavaFileObject

public class StringWrappingJavaFile extends SimpleJavaFileObject
A Java file object which is used to represent the Java source code coming from a string.
  • Field Details

    • code

      private final String code
      The source code of this "file".
  • Constructor Details

    • StringWrappingJavaFile

      public StringWrappingJavaFile(String name, String code)
      Constructs a new JavaSourceFromString.
      Parameters:
      name - the name of the compilation unit represented by this file object
      code - the source code for the compilation unit represented by this file object
  • Method Details