Class CharSequenceJavaFileObject
java.lang.Object
javax.tools.SimpleJavaFileObject
org.agrona.generation.CharSequenceJavaFileObject
- All Implemented Interfaces:
FileObject, JavaFileObject
An implementation of a
SimpleJavaFileObject which stores the content in a CharSequence.-
Nested Class Summary
Nested classes/interfaces inherited from interface JavaFileObject
JavaFileObject.Kind -
Field Summary
FieldsFields inherited from class SimpleJavaFileObject
kind, uri -
Constructor Summary
ConstructorsConstructorDescriptionCharSequenceJavaFileObject(String className, CharSequence sourceCode) Create file object from class source code. -
Method Summary
Methods inherited from class SimpleJavaFileObject
delete, forSource, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
Field Details
-
sourceCode
-
-
Constructor Details
-
CharSequenceJavaFileObject
Create file object from class source code.- Parameters:
className- name of the class.sourceCode- of the class.
-
-
Method Details
-
getCharContent
- Specified by:
getCharContentin interfaceFileObject- Overrides:
getCharContentin classSimpleJavaFileObject
-