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()StringgetClassName()InputStreamopenInputStream()OutputStreamopenOutputStream()-
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:
openOutputStreamin interfaceFileObject- Overrides:
openOutputStreamin classSimpleJavaFileObject- Throws:
IOException
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStreamin interfaceFileObject- Overrides:
openInputStreamin classSimpleJavaFileObject- Throws:
IOException
-
getBytes
public byte[] getBytes()
-
getClassName
public String getClassName()
-
-