T
- The visitor's return value's type.public static interface TypeDescription.Generic.Visitor<T>
TypeDescription.Generic
for differentiating on the sort of the visited type.Modifier and Type | Interface and Description |
---|---|
static class |
TypeDescription.Generic.Visitor.AnnotationStripper
A visitor that strips all type annotations of all types.
|
static class |
TypeDescription.Generic.Visitor.Assigner
A visitor that determines the direct assignability of a type to another generic type.
|
static class |
TypeDescription.Generic.Visitor.ForRawType
A visitor that transforms any type into a raw type if declaring type is generified.
|
static class |
TypeDescription.Generic.Visitor.ForSignatureVisitor
Visits a generic type and appends the discovered type to the supplied signature visitor.
|
static class |
TypeDescription.Generic.Visitor.NoOp
A non-operational generic type visitor.
|
static class |
TypeDescription.Generic.Visitor.Reducing
A visitor that reduces a detached generic type to its erasure.
|
static class |
TypeDescription.Generic.Visitor.Reifying
A visitor that reifies type descriptions if they represent raw types.
|
static class |
TypeDescription.Generic.Visitor.Substitutor
An abstract implementation of a visitor that substitutes generic types by replacing (nested)
type variables and/or non-generic component types.
|
static class |
TypeDescription.Generic.Visitor.TypeErasing
A visitor that returns the erasure of any visited type.
|
static class |
TypeDescription.Generic.Visitor.Validator
A validator for Java types that are defined for a specified type use within a Java class file.
|
Modifier and Type | Method and Description |
---|---|
T |
onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (
Sort#GENERIC_ARRAY ). |
T |
onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (
Sort#NON_GENERIC ). |
T |
onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (
Sort#PARAMETERIZED ). |
T |
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
T |
onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (
Sort#WILDCARD ). |
T onGenericArray(TypeDescription.Generic genericArray)
Sort#GENERIC_ARRAY
).genericArray
- The generic array type.T onWildcard(TypeDescription.Generic wildcard)
Sort#WILDCARD
).wildcard
- The wildcard.T onParameterizedType(TypeDescription.Generic parameterizedType)
Sort#PARAMETERIZED
).parameterizedType
- The generic array type.T onTypeVariable(TypeDescription.Generic typeVariable)
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
).typeVariable
- The generic array type.T onNonGenericType(TypeDescription.Generic typeDescription)
Sort#NON_GENERIC
).typeDescription
- The non-generic type.Copyright © 2014–2017. All rights reserved.