org.apache.maven.tools.plugin.javadoc
Class AbstractMojoTaglet
java.lang.Object
org.apache.maven.tools.plugin.javadoc.AbstractMojoTaglet
- All Implemented Interfaces:
- com.sun.tools.doclets.Taglet
- Direct Known Subclasses:
- AbstractMojoFieldTaglet, AbstractMojoTypeTaglet
public abstract class AbstractMojoTaglet
- extends Object
- implements com.sun.tools.doclets.Taglet
Abstract Taglet
for Maven Mojo annotations.
A Mojo annotation is defined like the following:
@annotation <annotationValue> <parameterName="parameterValue">
- Version:
- $Id: AbstractMojoTaglet.java 1338289 2012-05-14 16:53:36Z olamy $
- Author:
- Vincent Siveton
- See Also:
- package-summary.html
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.tools.doclets.Taglet |
getName, inConstructor, inField, inMethod, inOverview, inPackage, inType, isInlineTag |
AbstractMojoTaglet
public AbstractMojoTaglet()
toString
public String toString(com.sun.javadoc.Tag tag)
-
- Specified by:
toString
in interface com.sun.tools.doclets.Taglet
toString
public String toString(com.sun.javadoc.Tag[] tags)
-
- Specified by:
toString
in interface com.sun.tools.doclets.Taglet
getHeader
public abstract String getHeader()
- Returns:
- the header, i.e. the message, to display
getAllowedValue
public abstract String getAllowedValue()
- Returns:
- the given annotation value, or
null
if the given Mojo annotation/tag does't allow
annotation value.
Note: the value could be a pattern value, i.e.: *
for every values, a|b|c
for a OR b OR c
.
getAllowedParameterNames
public abstract String[] getAllowedParameterNames()
- Returns:
- an array of the allowed parameter names for the given Mojo annotation/tag, or
null
if the annotation/tag doesn't allow parameter.
hasAnnotationValue
public boolean hasAnnotationValue()
- Returns:
true
if taglet has annotation value, false
otherwise.- See Also:
getAllowedValue()
hasAnnotationParameters
public boolean hasAnnotationParameters()
- Returns:
true
if taglet has parameters, false
otherwise.- See Also:
getAllowedParameterNames()
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.