IJavaCompileUnit Interface

This interface represents a Java compile unit (source file).

public interface IJavaCompileUnit extends Iunknown

The interface contains the following properties and methods.

Method Description
Classes Collection of the classes in the compile unit.
ClassFromType Returns a class for a given type signature.
FindPackage Returns the package with a specified name.
Imports Collection of the compile unit's imported package and class names.
Package Provides access to the package containing this compile unit.
PackageName Name of the package containing this compile unit.
PrimaryClassName The name of the primary (public) class in this compile unit.
ProjectItem The VJProjectItem that corresponds to the compile unit.
ReadOnly Indicates whether the compile unit can be modified.
SaveChanges Commits changes that have been made in the compile unit, unless the user has the file open for editing.
TextFromType Converts a type signature to a type name in text format.
TypeFromText Converts a type name in text format to a type signature.