Package spoon.reflect.code
Enum CtJavaDocTag.TagType
- All Implemented Interfaces:
Serializable
,Comparable<CtJavaDocTag.TagType>
- Enclosing interface:
- CtJavaDocTag
Define the possible type for a tag
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get tag nameboolean
hasParam()
Return true if the tag can have a parameterstatic CtJavaDocTag.TagType
tagFromName(String tagName)
Get the tag type associated to a nametoString()
static CtJavaDocTag.TagType
Returns the enum constant of this type with the specified name.static CtJavaDocTag.TagType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTHOR
-
DEPRECATED
-
EXCEPTION
-
PARAM
-
RETURN
-
SEE
-
SERIAL
-
SERIAL_DATA
-
SERIAL_FIELD
-
SINCE
-
THROWS
-
VERSION
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Get tag name- Returns:
- name
-
hasParam
public boolean hasParam()Return true if the tag can have a parameter- Returns:
- true if the tag can have a parameter
-
tagFromName
Get the tag type associated to a name- Parameters:
tagName
- the tag name- Returns:
- the tag type
-
toString
- Overrides:
toString
in classEnum<CtJavaDocTag.TagType>
-