Package org.agrona.generation
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 javax.tools.JavaFileObject
JavaFileObject.Kind -
Field Summary
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri -
Constructor Summary
ConstructorsConstructorDescriptionCharSequenceJavaFileObject(String className, CharSequence sourceCode) Create file object from class source code. -
Method Summary
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
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
-