T - The visitor's return value's type.public static interface GenericTypeDescription.Visitor<T>
GenericTypeDescription for differentiating on the sort of the visited type.| Modifier and Type | Interface and Description |
|---|---|
static class |
GenericTypeDescription.Visitor.ForSignatureVisitor
Visits a generic type and appends the discovered type to the supplied signature visitor.
|
static class |
GenericTypeDescription.Visitor.NoOp
A non-operational generic type visitor.
|
static class |
GenericTypeDescription.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 |
GenericTypeDescription.Visitor.TypeErasing
A visitor that returns the erasure of any visited type.
|
static class |
GenericTypeDescription.Visitor.TypeVariableErasing
A visitor for erasing type variables on the most fine-grained level.
|
| Modifier and Type | Method and Description |
|---|---|
T |
onGenericArray(GenericTypeDescription genericArray)
Visits a generic array type (
GenericTypeDescription.Sort.GENERIC_ARRAY). |
T |
onNonGenericType(GenericTypeDescription typeDescription)
Visits a non-generic type (
GenericTypeDescription.Sort.NON_GENERIC). |
T |
onParameterizedType(GenericTypeDescription parameterizedType)
Visits a parameterized type (
GenericTypeDescription.Sort.PARAMETERIZED). |
T |
onTypeVariable(GenericTypeDescription typeVariable)
|
T |
onWildcard(GenericTypeDescription wildcard)
Visits a wildcard (
GenericTypeDescription.Sort.WILDCARD). |
T onGenericArray(GenericTypeDescription genericArray)
GenericTypeDescription.Sort.GENERIC_ARRAY).genericArray - The generic array type.T onWildcard(GenericTypeDescription wildcard)
GenericTypeDescription.Sort.WILDCARD).wildcard - The wildcard.T onParameterizedType(GenericTypeDescription parameterizedType)
GenericTypeDescription.Sort.PARAMETERIZED).parameterizedType - The generic array type.T onTypeVariable(GenericTypeDescription typeVariable)
GenericTypeDescription.Sort.VARIABLE,
GenericTypeDescription.Sort.VARIABLE_DETACHED,
GenericTypeDescription.Sort.VARIABLE_SYMBOLIC).typeVariable - The generic array type.T onNonGenericType(GenericTypeDescription typeDescription)
GenericTypeDescription.Sort.NON_GENERIC).typeDescription - The non-generic type.Copyright © 2014–2015. All rights reserved.