The IJavaCodeSense interface is the primary interface for the Visual J++ Code Model service, providing global Code Model operations. It is accessed by calling IServiceProvider::QueryService, with SID_SJavaCodeSense as the service ID:
hr = QueryService (SID_SJavaCodeSense, IID_IJavaCodeSense, &pICS)
This interface defines the following members.
| Member | Description |
| Class | Returns a class object for the named class, searching relative to the given base directory. |
| CompileUnit | Provides access to a compile unit. |
| Package | Returns a package object for the named package, searching relative to the given base directory. |
| SourceElements | Provides access to a collection of one or more named Java source code elements. |