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 |
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 |
isGenericDeclaration()
Checks if this type variable source has a generic declaration.
|
isAbstractisDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetModifiers, isFinal, isSyntheticstatic final TypeVariableSource UNDEFINED
TypeList.Generic getTypeVariables()
TypeVariableSource getEnclosingSource()
null if no such source exists.TypeDescription.Generic findVariable(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 isGenericDeclaration()
true if this type code element has a generic declaration.Copyright © 2014–2016. All rights reserved.