This property provides access to a compile unit (a file containing one or more classes).
Syntax
HRESULT CompileUnit(
[in]BSTR bstrFileName,
IJavaCompileUnit* retval
);
Property Get CompileUnit(FileName As String) As IJavaCompileUnit
Parameters
FileName
Required String. A full-path name identifying the file containing one or more classes.
Remarks
Compile units are identified by fully-qualified file names (for example, C:\MyClasses\Foo.java). The filename extension is optional. If a file with the .java extension does not exist, but a corresponding .class file does exist, the Java Code Model will use the .class file to obtain as much information as possible about the class.
Return Value
The value obtained from the returned HRESULT is one of the following:
Return value | Meaning |
S_OK | Success |