Class TestJavaFileObject
java.lang.Object
javax.tools.SimpleJavaFileObject
org.kordamp.jipsy.processor.testutils.TestJavaFileObject
- All Implemented Interfaces:
FileObject, JavaFileObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface JavaFileObject
JavaFileObject.Kind -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaFileObjectstatic final Iterable<JavaFileObject> private final CharSequenceFields inherited from class SimpleJavaFileObject
kind, uri -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTestJavaFileObject(String className, CharSequence programText) -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaFileObjectgetCharContent(boolean ignoreEncodingErrors) static Iterable<? extends JavaFileObject> private static CharSequenceprivate static URIMethods inherited from class SimpleJavaFileObject
delete, forSource, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
Field Details
-
HELLO_WORLD
-
ONLY_HELLO_WORLD
-
programText
-
-
Constructor Details
-
TestJavaFileObject
-
-
Method Details
-
getCharContent
- Specified by:
getCharContentin interfaceFileObject- Overrides:
getCharContentin classSimpleJavaFileObject- Throws:
IOException
-
uri
-
create
-
read
public static Iterable<? extends JavaFileObject> read(FileType type, String... names) throws IOException - Throws:
IOException
-
readFile
private static CharSequence readFile(FileType type, String name) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-