org.crsh.lang.impl.java
Class JavaClassFileObject

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by org.crsh.lang.impl.java.JavaClassFileObject
All Implemented Interfaces:
FileObject, JavaFileObject

 class JavaClassFileObject
extends SimpleJavaFileObject

Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
private  ByteArrayOutputStream baos
          .
private  String className
          .
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
JavaClassFileObject(String className)
           
 
Method Summary
 byte[] getBytes()
           
(package private)  String getClassName()
           
 OutputStream openOutputStream()
           
 
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

baos

private ByteArrayOutputStream baos
.


className

private final String className
.

Constructor Detail

JavaClassFileObject

JavaClassFileObject(String className)
              throws URISyntaxException
Throws:
URISyntaxException
Method Detail

getClassName

String getClassName()

getBytes

public byte[] getBytes()

openOutputStream

public OutputStream openOutputStream()
                              throws IOException
Specified by:
openOutputStream in interface FileObject
Overrides:
openOutputStream in class SimpleJavaFileObject
Throws:
IOException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.