public interface TypeVariableSource extends ByteCodeElement
Modifier and Type | Interface and Description |
---|---|
static interface |
TypeVariableSource.Visitor<T>
A visitor that can be applied to a type variable source.
|
ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithRuntimeName
ModifierReviewable.AbstractBase
NON_GENERIC_SIGNATURE
EMPTY_NAME, NO_NAME
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.
|
getDescriptor, getGenericSignature, isVisibleTo
getInternalName, getName
getSourceCodeName
getModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
getDeclaringType
getDeclaredAnnotations
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.Copyright © 2014–2016. All rights reserved.