public static boolean isClassFile ( IJavaElement elt ) { if ( elt == null ) { return false ; } return elt instanceof IClassFile || elt instanceof ICompilationUnit ; }
Checks whether the given java element is a Java class file .