public abstract boolean isNameCompatible (String simpleName, Kind kind)

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".

Parameters:
simpleName    a simple name of a class
kind    a kind

Returns:  true if this file object is compatible; false otherwise