Package net.openhft.compiler
Class JavaSourceFromString
java.lang.Object
javax.tools.SimpleJavaFileObject
net.openhft.compiler.JavaSourceFromString
- All Implemented Interfaces:
FileObject
,JavaFileObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
-
Field Summary
FieldsFields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
-
Constructor Summary
ConstructorsConstructorDescriptionJavaSourceFromString
(@NotNull String name, String code) Constructs a new JavaSourceFromString. -
Method Summary
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
Field Details
-
code
The source code of this "file".
-
-
Constructor Details
-
JavaSourceFromString
Constructs a new JavaSourceFromString.- Parameters:
name
- the name of the compilation unit represented by this file objectcode
- the source code for the compilation unit represented by this file object
-
-
Method Details
-
getCharContent
- Specified by:
getCharContent
in interfaceFileObject
- Overrides:
getCharContent
in classSimpleJavaFileObject
-