public class CharSequenceJavaFileObject extends SimpleJavaFileObject
SimpleJavaFileObject
which stores the content in a CharSequence
.JavaFileObject.Kind
kind, uri
Constructor and Description |
---|
CharSequenceJavaFileObject(String className,
CharSequence sourceCode)
Create file object from class source code.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
public CharSequenceJavaFileObject(String className, CharSequence sourceCode)
className
- name of the class.sourceCode
- of the class.public CharSequence getCharContent(boolean ignoreEncodingErrors)
getCharContent
in interface FileObject
getCharContent
in class SimpleJavaFileObject
Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.