org.aspectj.org.eclipse.jdt.internal.compiler.apt.util
Class EclipseFileObject

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by org.aspectj.org.eclipse.jdt.internal.compiler.apt.util.EclipseFileObject
All Implemented Interfaces:
javax.tools.FileObject, javax.tools.JavaFileObject

public class EclipseFileObject
extends javax.tools.SimpleJavaFileObject

Implementation of a Java file object that corresponds to a file on the file system


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
javax.tools.JavaFileObject.Kind
 
Field Summary
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
EclipseFileObject(java.lang.String className, java.net.URI uri, javax.tools.JavaFileObject.Kind kind, java.nio.charset.Charset charset)
           
 
Method Summary
 boolean delete()
           
 boolean equals(java.lang.Object o)
           
 javax.lang.model.element.Modifier getAccessLevel()
           
 java.lang.CharSequence getCharContent(boolean ignoreEncodingErrors)
           
 long getLastModified()
           
 java.lang.String getName()
           
 javax.lang.model.element.NestingKind getNestingKind()
           
 int hashCode()
           
 java.io.InputStream openInputStream()
           
 java.io.OutputStream openOutputStream()
           
 java.io.Reader openReader(boolean ignoreEncodingErrors)
           
 java.io.Writer openWriter()
           
 java.lang.String toString()
           
 
Methods inherited from class javax.tools.SimpleJavaFileObject
getKind, isNameCompatible, toUri
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EclipseFileObject

public EclipseFileObject(java.lang.String className,
                         java.net.URI uri,
                         javax.tools.JavaFileObject.Kind kind,
                         java.nio.charset.Charset charset)
Method Detail

getAccessLevel

public javax.lang.model.element.Modifier getAccessLevel()
Specified by:
getAccessLevel in interface javax.tools.JavaFileObject
Overrides:
getAccessLevel in class javax.tools.SimpleJavaFileObject

getNestingKind

public javax.lang.model.element.NestingKind getNestingKind()
Specified by:
getNestingKind in interface javax.tools.JavaFileObject
Overrides:
getNestingKind in class javax.tools.SimpleJavaFileObject

delete

public boolean delete()
Specified by:
delete in interface javax.tools.FileObject
Overrides:
delete in class javax.tools.SimpleJavaFileObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getCharContent

public java.lang.CharSequence getCharContent(boolean ignoreEncodingErrors)
                                      throws java.io.IOException
Specified by:
getCharContent in interface javax.tools.FileObject
Overrides:
getCharContent in class javax.tools.SimpleJavaFileObject
Throws:
java.io.IOException

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface javax.tools.FileObject
Overrides:
getLastModified in class javax.tools.SimpleJavaFileObject

getName

public java.lang.String getName()
Specified by:
getName in interface javax.tools.FileObject
Overrides:
getName in class javax.tools.SimpleJavaFileObject

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Specified by:
openInputStream in interface javax.tools.FileObject
Overrides:
openInputStream in class javax.tools.SimpleJavaFileObject
Throws:
java.io.IOException

openOutputStream

public java.io.OutputStream openOutputStream()
                                      throws java.io.IOException
Specified by:
openOutputStream in interface javax.tools.FileObject
Overrides:
openOutputStream in class javax.tools.SimpleJavaFileObject
Throws:
java.io.IOException

openReader

public java.io.Reader openReader(boolean ignoreEncodingErrors)
                          throws java.io.IOException
Specified by:
openReader in interface javax.tools.FileObject
Overrides:
openReader in class javax.tools.SimpleJavaFileObject
Throws:
java.io.IOException

openWriter

public java.io.Writer openWriter()
                          throws java.io.IOException
Specified by:
openWriter in interface javax.tools.FileObject
Overrides:
openWriter in class javax.tools.SimpleJavaFileObject
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class javax.tools.SimpleJavaFileObject