Package gw.lang.javac
Class ClassJavaFileObject
- java.lang.Object
-
- javax.tools.SimpleJavaFileObject
-
- gw.lang.javac.ClassJavaFileObject
-
- All Implemented Interfaces:
FileObject
,JavaFileObject
public class ClassJavaFileObject extends SimpleJavaFileObject
-
-
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 ClassJavaFileObject(String className, JavaFileObject.Kind kind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
String
getClassName()
InputStream
openInputStream()
OutputStream
openOutputStream()
-
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri
-
-
-
-
Constructor Detail
-
ClassJavaFileObject
public ClassJavaFileObject(String className, JavaFileObject.Kind kind)
-
-
Method Detail
-
openOutputStream
public OutputStream openOutputStream() throws IOException
- Specified by:
openOutputStream
in interfaceFileObject
- Overrides:
openOutputStream
in classSimpleJavaFileObject
- Throws:
IOException
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStream
in interfaceFileObject
- Overrides:
openInputStream
in classSimpleJavaFileObject
- Throws:
IOException
-
getBytes
public byte[] getBytes()
-
getClassName
public String getClassName()
-
-