public interface DocletEnvironment
Represents the operating environment of a single invocation
of the doclet. This object can be used to access the program
structures, various utilities and the user specified elements
on the command line.
- Since:
- 9
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The mode specifying the level of detail of module documentation. -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance of theDocTrees
utility class.Returns an instance of theElements
utility class.getFileKind
(TypeElement type) Returns the file kind of a type element.Returns the module, package and type elements that should be included in the documentation.Returns the file manager used to read and write files.Returns the required level of module documentation.Returns the source version of the source files that were read.Returns the elements specified when the tool is invoked.Returns an instance of theTypes
utility class.boolean
Returns true if an element should be included in the documentation.boolean
Returns true if the element is selected.
-
Method Details
-
getSpecifiedElements
-
getIncludedElements
-
getDocTrees
DocTrees getDocTrees()Returns an instance of theDocTrees
utility class. This class provides methods to accessTreePath
s,DocCommentTree
s and so on.- Returns:
- a utility class to operate on doc trees
-
getElementUtils
-
getTypeUtils
Types getTypeUtils()Returns an instance of theTypes
utility class. This class provides methods for operating ontype mirrors
.- Returns:
- a utility class to operate on type mirrors
-
isIncluded
-
isSelected
-
getJavaFileManager
JavaFileManager getJavaFileManager()Returns the file manager used to read and write files.- Returns:
- the file manager used to read and write files
-
getSourceVersion
SourceVersion getSourceVersion()Returns the source version of the source files that were read.- Returns:
- the source version
-
getModuleMode
DocletEnvironment.ModuleMode getModuleMode()Returns the required level of module documentation.- Returns:
- the required level of module documentation
-
getFileKind
Returns the file kind of a type element.- Parameters:
type
- the type element- Returns:
- the file kind
-