Class InMemoryJavaSourceFileObject
- java.lang.Object
-
- javax.tools.SimpleJavaFileObject
-
- io.github.mkoncek.classpathless.impl.IdentifiedJavaFileObject
-
- io.github.mkoncek.classpathless.impl.InMemoryJavaSourceFileObject
-
- All Implemented Interfaces:
FileObject
,JavaFileObject
public class InMemoryJavaSourceFileObject extends IdentifiedJavaFileObject
- Author:
- Marián Konček
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
-
-
Field Summary
-
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
-
-
Constructor Summary
Constructors Modifier Constructor Description InMemoryJavaSourceFileObject(IdentifiedSource source)
protected
InMemoryJavaSourceFileObject(String name)
InMemoryJavaSourceFileObject(String name, InputStream is)
InMemoryJavaSourceFileObject(String name, String source)
InMemoryJavaSourceFileObject(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequence
getCharContent(boolean ignoreEncodingErrors)
-
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
-
-
-
Constructor Detail
-
InMemoryJavaSourceFileObject
protected InMemoryJavaSourceFileObject(String name)
-
InMemoryJavaSourceFileObject
public InMemoryJavaSourceFileObject(String name, InputStream is) throws IOException
- Throws:
IOException
-
InMemoryJavaSourceFileObject
public InMemoryJavaSourceFileObject(Path path) throws IOException
- Throws:
IOException
-
InMemoryJavaSourceFileObject
public InMemoryJavaSourceFileObject(IdentifiedSource source)
-
-
Method Detail
-
getCharContent
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
- Specified by:
getCharContent
in interfaceFileObject
- Overrides:
getCharContent
in classSimpleJavaFileObject
- Throws:
IOException
-
-