public class MojoRequiresDirectInvocationTypeTaglet extends AbstractMojoTypeTaglet
/**
* Dummy Mojo.
*
* @requiresDirectInvocation <true|false>
* ...
*/
public class MyMojo extends AbstractMojo{}
To use it, calling the Javadoc tool with the following:
javadoc ... -taglet 'org.apache.maven.tools.plugin.javadoc.MojoRequiresDirectInvocationTypeTaglet'Note: This taglet is similar to call the
Javadoc tool with the following:
javadoc ... -tag 'requiresDirectInvocation:t:Requires a direct invocation by the user'
| Modifier and Type | Field and Description |
|---|---|
protected static String |
HEADER
The Javadoc text which will be added to the generated page.
|
| Constructor and Description |
|---|
MojoRequiresDirectInvocationTypeTaglet() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllowedParameterNames() |
String |
getAllowedValue() |
String |
getHeader() |
String |
getName() |
static void |
register(Map<String,com.sun.tools.doclets.Taglet> tagletMap)
Register this Taglet.
|
inConstructor, inField, inMethod, inOverview, inPackage, inType, isInlineTaghasAnnotationParameters, hasAnnotationValue, toString, toStringprotected static final String HEADER
public MojoRequiresDirectInvocationTypeTaglet()
public String getHeader()
getHeader in class AbstractMojoTagletAbstractMojoTaglet.getHeader(),
HEADERpublic String getAllowedValue()
getAllowedValue in class AbstractMojoTaglet"false|true" since @requiresDirectInvocation has value.AbstractMojoTaglet.getAllowedValue()public String[] getAllowedParameterNames()
getAllowedParameterNames in class AbstractMojoTagletnull since @requiresDirectInvocation has no parameter.AbstractMojoTaglet.getAllowedParameterNames()public String getName()
Taglet.getName(),
NAMECopyright © 2004–2018 The Apache Software Foundation. All rights reserved.