public static enum TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations extends java.lang.Enum<TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations> implements TypeDescription.Generic.Visitor<java.lang.Boolean>
TypeDescription.Generic.Visitor.AnnotationStripper, TypeDescription.Generic.Visitor.Assigner, TypeDescription.Generic.Visitor.ForRawType, TypeDescription.Generic.Visitor.ForSignatureVisitor, TypeDescription.Generic.Visitor.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Reifying, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.Validator
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.annotation.ElementType |
typeParameter
The
ElementType 's TYPE_PARAMETER constant. |
private java.lang.annotation.ElementType |
typeUse
The
ElementType 's TYPE_USE constant. |
Modifier and Type | Method and Description |
---|---|
private boolean |
isValid(TypeDescription.Generic typeDescription)
Checks if the supplied type's type annotations are valid.
|
static boolean |
ofFormalTypeVariable(TypeDescription.Generic typeVariable)
Validates the type annotations on a formal type variable but not on its bounds..
|
java.lang.Boolean |
onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (
Sort#GENERIC_ARRAY ). |
java.lang.Boolean |
onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (
Sort#NON_GENERIC ). |
java.lang.Boolean |
onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (
Sort#PARAMETERIZED ). |
java.lang.Boolean |
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
java.lang.Boolean |
onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (
Sort#WILDCARD ). |
static TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations INSTANCE
private final java.lang.annotation.ElementType typeUse
ElementType
's TYPE_USE
constant.private final java.lang.annotation.ElementType typeParameter
ElementType
's TYPE_PARAMETER
constant.public static TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations[] values()
for (TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations c : TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations.values()) System.out.println(c);
public static TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean ofFormalTypeVariable(TypeDescription.Generic typeVariable)
typeVariable
- The type variable to validate.true
if the formal type variable declares invalid type annotations.public java.lang.Boolean onGenericArray(TypeDescription.Generic genericArray)
Sort#GENERIC_ARRAY
).onGenericArray
in interface TypeDescription.Generic.Visitor<java.lang.Boolean>
genericArray
- The generic array type.public java.lang.Boolean onWildcard(TypeDescription.Generic wildcard)
Sort#WILDCARD
).onWildcard
in interface TypeDescription.Generic.Visitor<java.lang.Boolean>
wildcard
- The wildcard.public java.lang.Boolean onParameterizedType(TypeDescription.Generic parameterizedType)
Sort#PARAMETERIZED
).onParameterizedType
in interface TypeDescription.Generic.Visitor<java.lang.Boolean>
parameterizedType
- The generic array type.public java.lang.Boolean onTypeVariable(TypeDescription.Generic typeVariable)
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
).onTypeVariable
in interface TypeDescription.Generic.Visitor<java.lang.Boolean>
typeVariable
- The generic array type.public java.lang.Boolean onNonGenericType(TypeDescription.Generic typeDescription)
Sort#NON_GENERIC
).onNonGenericType
in interface TypeDescription.Generic.Visitor<java.lang.Boolean>
typeDescription
- The non-generic type.private boolean isValid(TypeDescription.Generic typeDescription)
typeDescription
- The type to validate.true
if the supplied type's type annotations are valid.