Package spoon.reflect.code
Enum Class CtJavaDocTag.TagType
- All Implemented Interfaces:
Serializable,Comparable<CtJavaDocTag.TagType>,Constable
- Enclosing interface:
- CtJavaDocTag
Define the possible type for a tag
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get tag namebooleanhasParam()Return true if the tag can have a parameterstatic CtJavaDocTag.TagTypetagFromName(String tagName) Get the tag type associated to a nametoString()static CtJavaDocTag.TagTypeReturns the enum constant of this class with the specified name.static CtJavaDocTag.TagType[]values()Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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:
toStringin classEnum<CtJavaDocTag.TagType>
-