Class InMemoryCompilerSource

java.lang.Object
javax.tools.SimpleJavaFileObject
de.monochromata.cucumber.stepdefs.compiler.InMemoryCompilerSource
All Implemented Interfaces:
javax.tools.FileObject, javax.tools.JavaFileObject

public class InMemoryCompilerSource
extends javax.tools.SimpleJavaFileObject
  • Nested Class Summary

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

    javax.tools.JavaFileObject.Kind
  • Field Summary

    Fields inherited from class javax.tools.SimpleJavaFileObject

    kind, uri
  • Constructor Summary

    Constructors
    Constructor Description
    InMemoryCompilerSource​(java.lang.String typeName, java.lang.String source)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.CharSequence getCharContent​(boolean ignoreEncodingErrors)  
    java.io.OutputStream openOutputStream()  
    protected static java.net.URI uri​(java.lang.String typeName)  

    Methods inherited from class javax.tools.SimpleJavaFileObject

    delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUri

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InMemoryCompilerSource

      public InMemoryCompilerSource​(java.lang.String typeName, java.lang.String source)
  • Method Details

    • uri

      protected static java.net.URI uri​(java.lang.String typeName)
    • openOutputStream

      public java.io.OutputStream openOutputStream() throws java.io.IOException
      Specified by:
      openOutputStream in interface javax.tools.FileObject
      Overrides:
      openOutputStream in class javax.tools.SimpleJavaFileObject
      Throws:
      java.io.IOException
    • getCharContent

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