public static enum TypeDescription.Generic.Visitor.Validator extends java.lang.Enum<TypeDescription.Generic.Visitor.Validator> implements TypeDescription.Generic.Visitor<java.lang.Boolean>
Modifier and Type | Class and Description |
---|---|
static class |
TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations
A type validator for checking type annotations.
|
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 |
---|
EXCEPTION
A validator for a method exception type.
|
FIELD
A validator for a field type.
|
INTERFACE
A validator for an interface type.
|
METHOD_PARAMETER
A validator for a method parameter type.
|
METHOD_RETURN
A validator for a method return type.
|
RECEIVER
A validator for a method receiver type.
|
SUPER_CLASS
A validator for checking a type's non-null super class.
|
TYPE_VARIABLE
A validator for a type variable.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
acceptsArray
true if this validator accepts array types. |
private boolean |
acceptsPrimitive
true if this validator accepts primitive types. |
private boolean |
acceptsVariable
true if this validator accepts type variables. |
private boolean |
acceptsVoid
true if this validator accepts the void type. |
Modifier and Type | Method and Description |
---|---|
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 |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeDescription.Generic.Visitor.Validator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDescription.Generic.Visitor.Validator SUPER_CLASS
public static final TypeDescription.Generic.Visitor.Validator INTERFACE
public static final TypeDescription.Generic.Visitor.Validator TYPE_VARIABLE
public static final TypeDescription.Generic.Visitor.Validator FIELD
public static final TypeDescription.Generic.Visitor.Validator METHOD_RETURN
public static final TypeDescription.Generic.Visitor.Validator METHOD_PARAMETER
public static final TypeDescription.Generic.Visitor.Validator EXCEPTION
public static final TypeDescription.Generic.Visitor.Validator RECEIVER
private final boolean acceptsArray
true
if this validator accepts array types.private final boolean acceptsPrimitive
true
if this validator accepts primitive types.private final boolean acceptsVariable
true
if this validator accepts type variables.private final boolean acceptsVoid
true
if this validator accepts the void
type.public static TypeDescription.Generic.Visitor.Validator[] values()
for (TypeDescription.Generic.Visitor.Validator c : TypeDescription.Generic.Visitor.Validator.values()) System.out.println(c);
public static TypeDescription.Generic.Visitor.Validator 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 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.