This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Add ClassIndex.getDeclaredSymbols | ||
---|---|---|---|
Product: | java | Reporter: | Jan Lahoda <jlahoda> |
Component: | Source | Assignee: | apireviews <apireviews> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | API, API_REVIEW_FAST |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 226064 | ||
Attachments: | Proposed API change. |
Description
Jan Lahoda
2013-03-18 11:36:04 UTC
Created attachment 132747 [details]
Proposed API change.
Please review. Thanks. Seems Ok to me. One possible change regarding the future inclusion of the full index which will introduce a new method like getSymbols(). If the getDeclaredSymbols() is changed to getSymbols(...,SymbolKind) where enum SymbolKind { DECLARED } the API can be extended to full index by just adding ALL to SymbolKind. I think having a separate method for full text index would be better, so several reasons. First, it may not be appropriate to have it in ClassIndex/java.source. Second, the current getDeclaredSymbol returns ElementHandles containing a sub-element with the given name. For full text index, we will likely want to return FileObjects rather than ElementHandles. Integrated: http://hg.netbeans.org/jet-main/rev/69b858bd531b |