-
Notifications
You must be signed in to change notification settings - Fork 0
File
jordanell edited this page May 25, 2012
·
5 revisions
The File class is a container that will store information regarding a specific Java file within the project.
This is a list of known information which the file container holds about a file.
- The file name. This is the path to the file starting from the project root.
- The file imports. This is a list of Strings which are the imported packages and classes used in the file.
- The file package. This is a String that is the package which is defined. If no package is defined for the current file, then the package is stored as an empty String.
- The classes that are in the file. This is a list of Clazz, which is the representative container for a class in Java, for each class that is defined inside the file. This list also contains interfaces as they are represented by the Clazz container.
- The interfaces that are in the file. This is a list of Clazz, but only those which are marked as interfaces, for each interface that is defined inside the file.
- The ownership map. This is a map which contains persons and code sections. In these section we can determine what part of the file (in character numbers) that the person owns.