public class JavaSourceFromString
extends javax.tools.SimpleJavaFileObject
javax.tools#JavaCompiler : | Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
code
The source code of this "file".
|
| Constructor and Description |
|---|
JavaSourceFromString(java.lang.String name,
java.lang.String code)
Constructs a new JavaSourceFromString.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.CharSequence |
getCharContent(boolean ignoreEncodingErrors)
Source code
|
public JavaSourceFromString(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 objectpublic java.lang.CharSequence getCharContent(boolean ignoreEncodingErrors)
getCharContent in interface javax.tools.FileObjectgetCharContent in class javax.tools.SimpleJavaFileObjectignoreEncodingErrors - Ignore hereSimpleJavaFileObject.getCharContent(boolean)