Package org.jctools.util
Class StringWrappingJavaFile
- java.lang.Object
-
- javax.tools.SimpleJavaFileObject
-
- org.jctools.util.StringWrappingJavaFile
-
- All Implemented Interfaces:
FileObject,JavaFileObject
public class StringWrappingJavaFile extends SimpleJavaFileObject
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 javax.tools.JavaFileObject
JavaFileObject.Kind
-
-
Field Summary
-
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
-
-
Constructor Summary
Constructors Constructor Description StringWrappingJavaFile(String name, String code)Constructs a new JavaSourceFromString.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequencegetCharContent(boolean ignoreEncodingErrors)-
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
-
-
-
-
Method Detail
-
getCharContent
public CharSequence getCharContent(boolean ignoreEncodingErrors)
- Specified by:
getCharContentin interfaceFileObject- Overrides:
getCharContentin classSimpleJavaFileObject
-
-