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.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable, 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 ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatableNested classes/interfaces inherited from interface TypeVariableSource
TypeVariableSource.AbstractBase, TypeVariableSource.Visitor<T> -
Field Summary
Fields inherited from interface ModifierReviewable
EMPTY_MASKFields inherited from interface 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 StringReturns aObject.toString()representation that does not attempt to resolve any type variables to avoid stack overflow exceptions.Methods inherited from class ModifierReviewable.AbstractBase
getEnumerationState, getFieldManifestation, getFieldPersistence, getMandate, getMethodManifestation, getMethodStrictness, getOpenness, getOwnership, getParameterManifestation, getProvisioningState, getRequiredPhase, getSynchronizationState, getSyntheticState, getTransitivity, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isOpen, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStaticPhase, isStrict, isSynchronized, isSynthetic, isTransient, isTransitive, isVarArgs, isVolatileMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSyntheticMethods inherited from interface ModifierReviewable.OfAbstraction
isAbstractMethods inherited from interface ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticMethods inherited from interface 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:
findVariablein interfaceTypeVariableSource- Parameters:
symbol- The symbolic name of the type variable.- Returns:
- The type variable or
nullif 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:
findExpectedVariablein 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.
-