Class AbstractInlineTaglet
- java.lang.Object
-
- com.norconex.commons.lang.javadoc.AbstractInlineTaglet
-
- All Implemented Interfaces:
Taglet
- Direct Known Subclasses:
BlockTaglet,HTMLTaglet,JSONTaglet,XMLTaglet
public abstract class AbstractInlineTaglet extends Object implements Taglet
Base inline taglet class. Subclasses are by default usable everywhere. Can optionally supply a heading that will appear before the tag content.
{@mytag #optionaIdForInclusion <xml>an example</xml> }- Since:
- 2.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jdk.javadoc.doclet.Taglet
Taglet.Location
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractInlineTaglet(String name)protectedAbstractInlineTaglet(String name, Function<TagContent,String> headingProvider)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Set<Taglet.Location>getAllowedLocations()Function<TagContent,String>getHeadingProvider()StringgetName()voidinit(DocletEnvironment env, Doclet doclet)booleanisInlineTag()protected abstract StringtoString(TagContent tag)StringtoString(List<? extends DocTree> tagTrees, Element element)
-
-
-
Constructor Detail
-
AbstractInlineTaglet
protected AbstractInlineTaglet(String name)
-
AbstractInlineTaglet
protected AbstractInlineTaglet(String name, Function<TagContent,String> headingProvider)
-
-
Method Detail
-
init
public void init(DocletEnvironment env, Doclet doclet)
-
getHeadingProvider
public Function<TagContent,String> getHeadingProvider()
-
isInlineTag
public boolean isInlineTag()
- Specified by:
isInlineTagin interfaceTaglet
-
getAllowedLocations
public Set<Taglet.Location> getAllowedLocations()
- Specified by:
getAllowedLocationsin interfaceTaglet
-
toString
protected abstract String toString(TagContent tag)
-
-