Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to find unresolved types in an ICompilationUnit?
How to find unresolved types in an ICompilationUnit? [message #249885] Fri, 30 November 2007 01:17
Werner Janjic is currently offline Werner JanjicFriend
Messages: 15
Registered: July 2009
Junior Member
Hello!

I've got an ICompilationUnit object via the following line:

ICompilationUnit icu = (ICompilationUnit)
JavaUI.getEditorInputJavaElement(editorInput);

I'd now like to know if (how?) it is possible to examine this object and
to find all unresolved types. Basically I only need the names of the
types that cannot be resolved. (e.g. in a BlackJack class there might be
a declaration Deck d = new Deck(); which is unknown yet).

Thanks in advance for your help!

Werner
Previous Topic:Locational attributes of ASTNodes.
Next Topic:Is there way not to compile erroneous *.java files
Goto Forum:
  


Current Time: Sun Jun 30 14:26:21 GMT 2024

Powered by FUDForum. Page generated in 0.03145 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top