public interface TypeVariableSource extends ModifierReviewable.OfAbstraction
| Modifier and Type | Interface and Description |
|---|---|
static class |
TypeVariableSource.AbstractBase
An abstract base implementation of a type variable source.
|
static interface |
TypeVariableSource.Visitor<T>
A visitor that can be applied to a type variable source.
|
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration| Modifier and Type | Field and Description |
|---|---|
static TypeVariableSource |
UNDEFINED
Indicates that a type variable source is undefined.
|
EMPTY_MASK| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(TypeVariableSource.Visitor<T> visitor)
Applies a visitor on this type variable source.
|
TypeDescription.Generic |
findExpectedVariable(String symbol)
Finds a particular variable with the given name in the closes type variable source that is visible from this instance.
|
TypeDescription.Generic |
findVariable(String symbol)
Finds a particular variable with the given name in the closes type variable source that is visible from this instance.
|
TypeVariableSource |
getEnclosingSource()
Returns the enclosing source of type variables that are valid in the scope of this type variable source.
|
TypeList.Generic |
getTypeVariables()
Returns the type variables that are declared by this element.
|
boolean |
isGenerified()
Checks if this type variable source has a generic declaration.
|
boolean |
isInferrable()
Returns
true if type variables declared by this type variable source allow dynamic type inference. |
isAbstractgetOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetModifiers, getSyntheticState, isFinal, isSynthetic@AlwaysNull static final TypeVariableSource UNDEFINED
TypeList.Generic getTypeVariables()
@MaybeNull TypeVariableSource getEnclosingSource()
null if no such source exists.boolean isInferrable()
true if type variables declared by this type variable source allow dynamic type inference.true if type variables declared by this type variable source allow dynamic type inference.@MaybeNull TypeDescription.Generic findVariable(String symbol)
symbol - The symbolic name of the type variable.null if it was not found.TypeDescription.Generic findExpectedVariable(String symbol)
symbol - The symbolic name of the type variable.<T> T accept(TypeVariableSource.Visitor<T> visitor)
T - The visitor's return type.visitor - The visitor to apply.boolean isGenerified()
true if this type code element has a generic declaration.Copyright © 2014–2023. All rights reserved.