IJavaCodeSense::Package

Returns a package object for the named package, searching relative to the given base directory.

Syntax

HRESULT Package(
[in] BSTR bstrName
[in] VARIANT_BOOL fPublic
[in] BSTR bstrDir
[out, retval]IJavaPackage** retval
);

Property Get CompileUnit(FileName As String) As IJavaCompileUnit

Parameters

FileName

Required string. A full path that identifies the file containing one or more classes.

fPublic

Boolean. Determines if this property is public.

bstrDir

String. Base directory.

Remarks

Packages are identified by their names within the Java namespace (such as java.lang). An optional directory name parameter specifies a starting point for locating the requested package. This directory is substituted for a period wherever it appears in the CLASSPATH.