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.

Bug 115689 - Code Model API: add methods getXxxx(CsmDeclaration.Kind[] ...) where appropriate
Summary: Code Model API: add methods getXxxx(CsmDeclaration.Kind[] ...) where appropriate
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-09-17 11:18 UTC by Vladimir Kvashin
Modified: 2008-11-20 19:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2007-09-17 11:18:35 UTC
The typical use case is as follows: a client asks for a collection of model elements of some kind (e.g. class members),
then it enumerates the collection to process elements of the given kind (for example, functions).

Now the entire collection of the elements is created (requested from persistence) at once. But UIDs contain enough
information to understand the kind of the elements.

So it's worth adding methods that receive an array of kinds (CsmDeclaration.Kind).
For example, in CsmClass, apart from
Collection<CsmMember> getMembers
add
Collection<CsmMember> getMembers(CsmDeclaration.KIND kinds...)
Comment 1 Vladimir Kvashin 2008-11-20 19:45:15 UTC
It is introduced in o.n.m.c.api.model.services module - see CsmSelect and CsmFilter.