public abstract static class TypeVariableSource.AbstractBase extends ModifierReviewable.AbstractBase implements TypeVariableSource
TypeVariableSource.AbstractBase, TypeVariableSource.Visitor<T>
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
UNDEFINED
EMPTY_MASK
Constructor and Description |
---|
AbstractBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected abstract String |
toSafeString()
Returns a
Object.toString() representation that does not attempt to resolve any
type variables to avoid stack overflow exceptions. |
getEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, getEnclosingSource, getTypeVariables, isGenerified, isInferrable
isAbstract
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
getModifiers, getSyntheticState, isFinal, isSynthetic
@MaybeNull public TypeDescription.Generic findVariable(String symbol)
findVariable
in interface TypeVariableSource
symbol
- The symbolic name of the type variable.null
if it was not found.public TypeDescription.Generic findExpectedVariable(String symbol)
findExpectedVariable
in interface TypeVariableSource
symbol
- The symbolic name of the type variable.protected abstract String toSafeString()
Object.toString()
representation that does not attempt to resolve any
type variables to avoid stack overflow exceptions.Copyright © 2014–2025. All rights reserved.