public static class GenericTypeDescription.Visitor.Substitutor.ForDetachment extends GenericTypeDescription.Visitor.Substitutor
ElementMatcher
with TargetType
.Modifier and Type | Class and Description |
---|---|
protected static class |
GenericTypeDescription.Visitor.Substitutor.ForDetachment.DetachedTypeVariable
A description of a detached type variable.
|
GenericTypeDescription.Visitor.Substitutor.ForAttachment, GenericTypeDescription.Visitor.Substitutor.ForDetachment, GenericTypeDescription.Visitor.Substitutor.ForTypeVariableBinding
GenericTypeDescription.Visitor.ForSignatureVisitor, GenericTypeDescription.Visitor.NoOp, GenericTypeDescription.Visitor.Substitutor, GenericTypeDescription.Visitor.TypeErasing, GenericTypeDescription.Visitor.TypeVariableErasing
Constructor and Description |
---|
ForDetachment(ElementMatcher<? super TypeDescription> typeMatcher)
Creates a visitor for detaching a type.
|
Modifier and Type | Method and Description |
---|---|
protected GenericTypeDescription |
onSimpleType(GenericTypeDescription typeDescription)
Visits a simple, non-generic type, i.e.
|
GenericTypeDescription |
onTypeVariable(GenericTypeDescription genericTypeDescription)
|
protected void |
register(String symbol,
GenericTypeDescription typeVariable)
Registers a generic type variable that was not yet visited.
|
String |
toString() |
onGenericArray, onNonGenericType, onParameterizedType, onWildcard
public ForDetachment(ElementMatcher<? super TypeDescription> typeMatcher)
typeMatcher
- A type matcher for identifying the declaring type.public GenericTypeDescription onTypeVariable(GenericTypeDescription genericTypeDescription)
GenericTypeDescription.Visitor
GenericTypeDescription.Sort.VARIABLE
,
GenericTypeDescription.Sort.VARIABLE_DETACHED
,
GenericTypeDescription.Sort.VARIABLE_SYMBOLIC
).genericTypeDescription
- The generic array type.protected GenericTypeDescription onSimpleType(GenericTypeDescription typeDescription)
GenericTypeDescription.Visitor.Substitutor
onSimpleType
in class GenericTypeDescription.Visitor.Substitutor
typeDescription
- The type that is visited.protected void register(String symbol, GenericTypeDescription typeVariable)
symbol
- The type variable's symbol.typeVariable
- A description of the generic type variable.Copyright © 2014–2015. All rights reserved.