Package net.bytebuddy.description
Class TypeVariableSource.AbstractBase
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.TypeVariableSource.AbstractBase
- All Implemented Interfaces:
ModifierReviewable
,ModifierReviewable.ForFieldDescription
,ModifierReviewable.ForMethodDescription
,ModifierReviewable.ForParameterDescription
,ModifierReviewable.ForTypeDefinition
,ModifierReviewable.OfAbstraction
,ModifierReviewable.OfByteCodeElement
,ModifierReviewable.OfEnumeration
,TypeVariableSource
- Direct Known Subclasses:
MethodDescription.AbstractBase
,TypeDescription.AbstractBase
- Enclosing interface:
TypeVariableSource
public abstract static class TypeVariableSource.AbstractBase
extends ModifierReviewable.AbstractBase
implements TypeVariableSource
An abstract base implementation of a type variable source.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
Nested classes/interfaces inherited from interface net.bytebuddy.description.TypeVariableSource
TypeVariableSource.AbstractBase, TypeVariableSource.Visitor<T>
-
Field Summary
Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASK
Fields inherited from interface net.bytebuddy.description.TypeVariableSource
UNDEFINED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindExpectedVariable
(String symbol) Finds a particular variable with the given name in the closes type variable source that is visible from this instance.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
Returns aObject.toString()
representation that does not attempt to resolve any type variables to avoid stack overflow exceptions.Methods inherited from class net.bytebuddy.description.ModifierReviewable.AbstractBase
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSynthetic
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfAbstraction
isAbstract
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
Methods inherited from interface net.bytebuddy.description.TypeVariableSource
accept, getEnclosingSource, getTypeVariables, isGenerified, isInferrable
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
findVariable
Finds a particular variable with the given name in the closes type variable source that is visible from this instance.- Specified by:
findVariable
in interfaceTypeVariableSource
- Parameters:
symbol
- The symbolic name of the type variable.- Returns:
- The type variable or
null
if it was not found.
-
findExpectedVariable
Finds a particular variable with the given name in the closes type variable source that is visible from this instance. If the variable is not found, an exception is thrown.- Specified by:
findExpectedVariable
in interfaceTypeVariableSource
- Parameters:
symbol
- The symbolic name of the type variable.- Returns:
- The type variable.
-
toSafeString
Returns aObject.toString()
representation that does not attempt to resolve any type variables to avoid stack overflow exceptions.- Returns:
- A safe string representation.
-