public static enum TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations extends Enum<TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations> implements TypeDescription.Generic.Visitor<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 | Method and Description |
---|---|
static boolean |
ofFormalTypeVariable(TypeDescription.Generic typeVariable)
Validates the type annotations on a formal type variable but not on its bounds..
|
Boolean |
onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (
Sort#GENERIC_ARRAY ). |
Boolean |
onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (
Sort#NON_GENERIC ). |
Boolean |
onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (
Sort#PARAMETERIZED ). |
Boolean |
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
Boolean |
onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (
Sort#WILDCARD ). |
static TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations |
valueOf(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
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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 Boolean onGenericArray(TypeDescription.Generic genericArray)
TypeDescription.Generic.Visitor
Sort#GENERIC_ARRAY
).onGenericArray
in interface TypeDescription.Generic.Visitor<Boolean>
genericArray
- The generic array type.public Boolean onWildcard(TypeDescription.Generic wildcard)
TypeDescription.Generic.Visitor
Sort#WILDCARD
).onWildcard
in interface TypeDescription.Generic.Visitor<Boolean>
wildcard
- The wildcard.public Boolean onParameterizedType(TypeDescription.Generic parameterizedType)
TypeDescription.Generic.Visitor
Sort#PARAMETERIZED
).onParameterizedType
in interface TypeDescription.Generic.Visitor<Boolean>
parameterizedType
- The generic array type.public Boolean onTypeVariable(TypeDescription.Generic typeVariable)
TypeDescription.Generic.Visitor
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
).onTypeVariable
in interface TypeDescription.Generic.Visitor<Boolean>
typeVariable
- The generic array type.public Boolean onNonGenericType(TypeDescription.Generic typeDescription)
TypeDescription.Generic.Visitor
Sort#NON_GENERIC
).onNonGenericType
in interface TypeDescription.Generic.Visitor<Boolean>
typeDescription
- The non-generic type.Copyright © 2014–2018. All rights reserved.