Class CompilingClassLoader.InMemoryJavaFile

  • All Implemented Interfaces:
    javax.tools.FileObject, javax.tools.JavaFileObject
    Enclosing class:
    CompilingClassLoader

    private static class CompilingClassLoader.InMemoryJavaFile
    extends javax.tools.SimpleJavaFileObject
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.tools.JavaFileObject

        javax.tools.JavaFileObject.Kind
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String sourceCode  
      • Fields inherited from class javax.tools.SimpleJavaFileObject

        kind, uri
    • Constructor Summary

      Constructors 
      Constructor Description
      InMemoryJavaFile​(java.lang.String className, java.lang.String sourceCode)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.CharSequence getCharContent​(boolean ignoreEncodingErrors)  
      private static java.net.URI makeUri​(java.lang.String className)  
      • Methods inherited from class javax.tools.SimpleJavaFileObject

        delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sourceCode

        private final java.lang.String sourceCode
    • Constructor Detail

      • InMemoryJavaFile

        public InMemoryJavaFile​(java.lang.String className,
                                java.lang.String sourceCode)
    • Method Detail

      • makeUri

        private static java.net.URI makeUri​(java.lang.String className)
      • getCharContent

        public java.lang.CharSequence getCharContent​(boolean ignoreEncodingErrors)
                                              throws java.io.IOException
        Specified by:
        getCharContent in interface javax.tools.FileObject
        Overrides:
        getCharContent in class javax.tools.SimpleJavaFileObject
        Throws:
        java.io.IOException