Klasse TagletManager
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.taglets.TagletManager
Manages the Taglets used by doclets.
-
Konstruktorübersicht
KonstruktorBeschreibungTagletManager
(BaseConfiguration configuration) Constructs a new TagletManager. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addCustomTag
(String classname, JavaFileManager fileManager) Adds a new Taglet.void
addNewSimpleCustomTag
(String tagName, String header, String locations) Adds a new SimpleTaglet.void
Given a series of DocTrees, check for misuse and spelling mistakes.Returns the custom tags for a given element.Returns the taglets that can appear in the serialized form.void
initTagletPath
(JavaFileManager fileManager) Initializes the location TAGLET_PATH which is used to locate the custom taglets.boolean
isKnownCustomTag
(String tagName) void
loadTaglets
(JavaFileManager fileManager) Loads taglets from a taglet path using the service loader.void
Print a list ofTaglet
s that might conflict with standard tags in the future and a list of standard tags that have been overridden.
-
Konstruktordetails
-
TagletManager
Constructs a new TagletManager.- Parameter:
configuration
- the configuration for this taglet manager
-
-
Methodendetails
-
getAllTagletNames
-
initTagletPath
Initializes the location TAGLET_PATH which is used to locate the custom taglets.- Parameter:
fileManager
- the file manager to load classes and resources- Löst aus:
IOException
- if an error occurs while setting the location
-
addCustomTag
Adds a new Taglet.Prints a message to indicate whether or not the Taglet was registered properly.
- Parameter:
classname
- the name of the class representing the custom tagfileManager
- the file manager to load classes and resources
-
loadTaglets
Loads taglets from a taglet path using the service loader.- Parameter:
fileManager
- the file manager to load the taglets- Löst aus:
IOException
- if an error occurs while getting the service loader
-
addNewSimpleCustomTag
Adds a new SimpleTaglet.If this tag already exists and the header passed as an argument is null, move tag to the back of the list. If this tag already exists and the header passed as an argument is not null, overwrite previous tag with the new one. Otherwise, add a new SimpleTaglet to the list.
- Parameter:
tagName
- the name of this tagheader
- the header to outputlocations
- the possible locations that this tag can appear in
-
checkTags
Given a series of DocTrees, check for misuse and spelling mistakes.- Parameter:
element
- the tags holdertrees
- the trees containing the comments
-
getSerializedFormTaglets
Returns the taglets that can appear in the serialized form.- Gibt zurück:
- the taglet that can appear in the serialized form
-
getBlockTaglets
Returns the custom tags for a given element.- Parameter:
e
- the element to get custom tags for- Gibt zurück:
- the array of Taglets that can appear in the given element
-
isKnownCustomTag
-
printReport
Print a list ofTaglet
s that might conflict with standard tags in the future and a list of standard tags that have been overridden.
-