Class StringWrappingJavaFile
java.lang.Object
javax.tools.SimpleJavaFileObject
org.jctools.util.StringWrappingJavaFile
- All Implemented Interfaces:
FileObject, JavaFileObject
A Java file object which is used to represent the Java source code coming from a string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface JavaFileObject
JavaFileObject.Kind -
Field Summary
FieldsFields inherited from class SimpleJavaFileObject
kind, uri -
Constructor Summary
ConstructorsConstructorDescriptionStringWrappingJavaFile(String name, String code) Constructs a new JavaSourceFromString. -
Method Summary
Modifier and TypeMethodDescriptiongetCharContent(boolean ignoreEncodingErrors) private static URIgetFileUri(String name) Methods inherited from class SimpleJavaFileObject
delete, forSource, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
Field Details
-
code
The source code of this "file".
-
-
Constructor Details
-
StringWrappingJavaFile
-
-
Method Details
-
getFileUri
-
getCharContent
- Specified by:
getCharContentin interfaceFileObject- Overrides:
getCharContentin classSimpleJavaFileObject
-