Package com.thoughtworks.qdox.model.impl
Class DefaultDocletTag
java.lang.Object
com.thoughtworks.qdox.model.impl.DefaultDocletTag
- All Implemented Interfaces:
DocletTag
,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JavaAnnotatedElement
private final int
private final String
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDocletTag
(String name, String value) DefaultDocletTag
(String name, String value, JavaAnnotatedElement context, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionfinal JavaAnnotatedElement
The element to which this tag applies.int
The line number of the source where this tag occurred.getName()
The name of the doclet tag.getNamedParameter
(String key) getValue()
The full value of the doclet tag.
-
Field Details
-
name
-
value
-
lineNumber
private final int lineNumber -
parameters
-
namedParameters
-
context
-
-
Constructor Details
-
DefaultDocletTag
-
DefaultDocletTag
-
-
Method Details
-
getName
The name of the doclet tag. -
getValue
The full value of the doclet tag. -
getParameters
- Specified by:
getParameters
in interfaceDocletTag
- Returns:
- a list of whitespace-separated tag parameters
-
getNamedParameterMap
- Specified by:
getNamedParameterMap
in interfaceDocletTag
- Returns:
- a Map containing all the named-parameters, never
null
-
getNamedParameter
- Specified by:
getNamedParameter
in interfaceDocletTag
- Parameters:
key
- name of a named-parameter- Returns:
- the matching value, otherwise
null
-
getContext
The element to which this tag applies.- Specified by:
getContext
in interfaceDocletTag
- Returns:
- the annotated element, should never be
null
-
getLineNumber
public int getLineNumber()The line number of the source where this tag occurred.- Specified by:
getLineNumber
in interfaceDocletTag
- Returns:
- the line number where the tag occurred, otherwise
-1
-