org.crsh.lang.impl.java
Class JavaSourceFileObject

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

 class JavaSourceFileObject
extends SimpleJavaFileObject

Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
private  String source
          .
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
JavaSourceFileObject(String className, String source)
           
 
Method Summary
 CharSequence getCharContent(boolean ignoreEncodingErrors)
           
 
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

private final String source
.

Constructor Detail

JavaSourceFileObject

JavaSourceFileObject(String className,
                     String source)
               throws URISyntaxException
Throws:
URISyntaxException
Method Detail

getCharContent

public CharSequence getCharContent(boolean ignoreEncodingErrors)
                            throws IOException
Specified by:
getCharContent in interface FileObject
Overrides:
getCharContent in class SimpleJavaFileObject
Throws:
IOException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.