public class StringWrappingJavaFile
extends javax.tools.SimpleJavaFileObject
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
code
The source code of this "file".
|
| Constructor and Description |
|---|
StringWrappingJavaFile(java.lang.String name,
java.lang.String code)
Constructs a new JavaSourceFromString.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
private static java.net.URI |
getFileUri(java.lang.String name) |
public StringWrappingJavaFile(java.lang.String name,
java.lang.String code)
name - the name of the compilation unit represented by this file
objectcode - the source code for the compilation unit represented by this
file objectprivate static java.net.URI getFileUri(java.lang.String name)
public java.lang.CharSequence getCharContent(boolean ignoreEncodingErrors)
getCharContent in interface javax.tools.FileObjectgetCharContent in class javax.tools.SimpleJavaFileObject