|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.file.BaseFileObject
public abstract class BaseFileObject
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.tools.JavaFileObject |
|---|
JavaFileObject.Kind |
| Field Summary | |
|---|---|
protected JavacFileManager |
fileManager
The file manager that created this JavaFileObject. |
| Constructor Summary | |
|---|---|
protected |
BaseFileObject(JavacFileManager fileManager)
|
| Method Summary | |
|---|---|
Modifier |
getAccessLevel()
Provides a hint about the access level of the class represented by this file object. |
protected java.nio.charset.CharsetDecoder |
getDecoder(boolean ignoreEncodingErrors)
|
JavaFileObject.Kind |
getKind()
Gets the kind of this file object. |
abstract java.lang.String |
getName()
Deprecated. see bug 6410637 |
NestingKind |
getNestingKind()
Provides a hint about the nesting level of the class represented by this file object. |
java.lang.String |
getPath()
Deprecated. see bug 6410637 |
protected abstract java.lang.String |
inferBinaryName(java.lang.Iterable<? extends java.io.File> path)
|
java.io.Reader |
openReader(boolean ignoreEncodingErrors)
Gets a reader for this object. |
protected static java.lang.String |
removeExtension(java.lang.String fileName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.tools.JavaFileObject |
|---|
isNameCompatible |
| Methods inherited from interface javax.tools.FileObject |
|---|
delete, getCharContent, getLastModified, openInputStream, openOutputStream, openWriter, toUri |
| Field Detail |
|---|
protected final JavacFileManager fileManager
| Constructor Detail |
|---|
protected BaseFileObject(JavacFileManager fileManager)
| Method Detail |
|---|
public JavaFileObject.Kind getKind()
JavaFileObject
getKind in interface JavaFileObjectpublic java.lang.String toString()
toString in class java.lang.Object@Deprecated public java.lang.String getPath()
@Deprecated public abstract java.lang.String getName()
FileObject"BobsApp\Test.java" on
the command line, this method should return "BobsApp\Test.java" whereas the toUri
method might return file:///C:/Documents%20and%20Settings/UncleBob/BobsApp/Test.java.
getName in interface FileObjectpublic NestingKind getNestingKind()
JavaFileObjectNestingKind.MEMBER to mean
NestingKind.LOCAL or NestingKind.ANONYMOUS.
If the nesting level is not known or this file object does not
represent a class file this method returns null.
getNestingKind in interface JavaFileObjectnull if the nesting kind
is not knownpublic Modifier getAccessLevel()
JavaFileObjectnull.
getAccessLevel in interface JavaFileObject
public java.io.Reader openReader(boolean ignoreEncodingErrors)
throws java.io.IOException
FileObjectignoreEncodingErrors is true.
openReader in interface FileObjectignoreEncodingErrors - ignore encoding errors if true
java.io.IOException - if an I/O error occurredprotected java.nio.charset.CharsetDecoder getDecoder(boolean ignoreEncodingErrors)
protected abstract java.lang.String inferBinaryName(java.lang.Iterable<? extends java.io.File> path)
protected static java.lang.String removeExtension(java.lang.String fileName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||