Return the last enclosing class name for the specified document, "" if not inside a class, or
null if unknown.
WARNING: In long source files and when contained in anonymous inner classes, this function might take a LONG time.
Parameters: doc - the document for which we want the information the enclosing class name