Trying to compile Java source via the javax.tools.ToolProvider.getSystemJavaCompiler
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package org.apidesign.bck2brwsr.dew;
7 import java.io.IOException;
8 import java.io.InputStream;
9 import java.io.OutputStream;
10 import java.io.Reader;
11 import java.io.StringReader;
12 import java.io.Writer;
14 import javax.lang.model.element.Modifier;
15 import javax.lang.model.element.NestingKind;
16 import javax.tools.JavaFileObject;
20 * @author Jaroslav Tulach <jtulach@netbeans.org>
22 final class JFO implements JavaFileObject {
23 private final String text;
24 private final String name;
26 public JFO(String text, String name) {
32 public Kind getKind() {
37 public boolean isNameCompatible(String simpleName, Kind kind) {
42 public NestingKind getNestingKind() {
43 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
47 public Modifier getAccessLevel() {
48 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
53 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
57 public String getName() {
62 public InputStream openInputStream() throws IOException {
63 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
67 public OutputStream openOutputStream() throws IOException {
68 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
72 public Reader openReader(boolean ignoreEncodingErrors) throws IOException {
73 return new StringReader(text);
77 public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
82 public Writer openWriter() throws IOException {
83 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
87 public long getLastModified() {
88 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
92 public boolean delete() {
93 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.