public interface TypeVariableSource extends ByteCodeElement
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.
|
ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
Modifier and Type | Field and Description |
---|---|
static TypeVariableSource |
UNDEFINED
Indicates that a type variable source is undefined.
|
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.
|
boolean |
isGenericDeclaration()
Checks if this type variable source has a generic declaration.
|
getDescriptor, getGenericSignature, isVisibleTo
getInternalName, getName
getActualName
getModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
getDeclaringType
getDeclaredAnnotations
static 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.