Unless explicitly allowed, all methods in this interface might
throw a NullPointerException if given a null argument.
JavaFileManager
| Modifier and Type | Class and Description |
|---|---|
| public static enum | JavaFileObject.
Kinds of JavaFileObjects. |
| Modifier and Type | Method and Description |
|---|---|
| public Modifier | Returns: the access levelProvides a hint about the access level of the class represented by this file object. |
| public JavaFileObject. | |
| public NestingKind | Returns: the nesting kind, ornull if the nesting kind
is not knownProvides a hint about the nesting level of the class represented by this file object. |
| public boolean | Returns: true if this file object is compatible; false
otherwisea simple name of a class simpleName, JavaFileObject.a kind kindChecks if this file object is compatible with the specified simple name and kind. |
| getAccessLevel | back to summary |
|---|---|
| public Modifier getAccessLevel() Provides a hint about the access level of the class represented
by this file object. If the access level is not known or
this file object does not represent a class file this method
returns
| |
| getKind | back to summary |
|---|---|
| public JavaFileObject. Returns the kind of this file object.
| |
| getNestingKind | back to summary |
|---|---|
| public NestingKind getNestingKind() Provides a hint about the nesting level of the class
represented by this file object. This method may return
| |
| isNameCompatible | back to summary |
|---|---|
| public boolean isNameCompatible(String simpleName, JavaFileObject. Checks if this file object is compatible with the specified simple name and kind. A simple name is a single identifier (not qualified) as defined in The Java Language Specification, section 6.2.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final JavaFileObject. | CLASS
Class files for the Java Virtual Machine. |
| public final String | extension
The extension which (by convention) is normally used for this kind of file object. |
| public static final JavaFileObject. | HTML
HTML files. |
| public static final JavaFileObject. | OTHER
Any other kind. |
| public static final JavaFileObject. | SOURCE
Source files written in the Java programming language. |
| Modifier and Type | Method and Description |
|---|---|
| public static JavaFileObject. | |
| public static JavaFileObject. |
| CLASS | back to summary |
|---|---|
| public static final JavaFileObject. Class files for the Java Virtual Machine. For example,
regular files ending with | |
| extension | back to summary |
|---|---|
| public final String extension The extension which (by convention) is normally used for
this kind of file object. If no convention exists, the
empty string ( | |
| HTML | back to summary |
|---|---|
| public static final JavaFileObject. HTML files. For example, regular files ending with | |
| OTHER | back to summary |
|---|---|
| public static final JavaFileObject. Any other kind. | |
| SOURCE | back to summary |
|---|---|
| public static final JavaFileObject. Source files written in the Java programming language. For
example, regular files ending with | |
| Kind | back to summary |
|---|---|
| private Kind(String extension) | |
| valueOf | back to summary |
|---|---|
| public static JavaFileObject. | |
| values | back to summary |
|---|---|
| public static JavaFileObject. | |