Provides a hint about the access level of the class represented
by this file object. If the access level is not known or if
this file object does not represent a class file this method
returns null.
Provides a hint about the nesting level of the class
represented by this file object. This method may return
NestingKind.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.
null if the nesting kind
is not known
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 "Names and Identifiers".
simpleName | a simple name of a class | |
kind | a kind |
true if this file object is compatible; false
otherwise
Diagram: JavaFileObject