Package com.linecorp.armeria.server.docs
Enum Class TypeSignatureType
- All Implemented Interfaces:
Serializable
,Comparable<TypeSignatureType>
,java.lang.constant.Constable
Represents the different type that is used for
DocService
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the type has type parameterTypeSignature
.boolean
Returns true if thisTypeSignatureType
has type a type descriptor.static TypeSignatureType
Returns the enum constant of this class with the specified name.static TypeSignatureType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASE
Base type. -
STRUCT
Struct of exception type. TheTypeSignature
whose type isSTRUCT
is converted to aStructInfo
orExceptionInfo
-
ENUM
-
ITERABLE
Iterable type. -
MAP
Map type. -
OPTIONAL
Optional type. -
CONTAINER
Container type. -
UNRESOLVED
Unresolved type.
-
-
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
-
hasParameter
public boolean hasParameter()Returns true if the type has type parameterTypeSignature
. -
hasTypeDescriptor
public boolean hasTypeDescriptor()Returns true if thisTypeSignatureType
has type a type descriptor.
-