Class ParameterDescription.AbstractBase
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.method.ParameterDescription.AbstractBase
- All Implemented Interfaces:
AnnotationSource, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape, ParameterDescription.Token>, ParameterDescription, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable, NamedElement, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
- Direct Known Subclasses:
ParameterDescription.InDefinedShape.AbstractBase, ParameterDescription.TypeSubstituting, Transformer.ForMethod.TransformedMethod.TransformedParameter
- Enclosing interface:
ParameterDescription
public abstract static class ParameterDescription.AbstractBase
extends ModifierReviewable.AbstractBase
implements ParameterDescription
A base implementation of a method parameter description.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested 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 NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNested classes/interfaces inherited from interface ParameterDescription
ParameterDescription.AbstractBase, ParameterDescription.ForLoadedParameter<T>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstituting -
Field Summary
Fields inherited from interface ModifierReviewable
EMPTY_MASKFields inherited from interface NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface ParameterDescription
NAME_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasToken(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.booleanReturns the display name of this element as it is found in the source code.Returns the internal name of this byte code element.intReturns the modifier that is described by this object.getName()Returns the binary name of this byte code element.intReturns the offset to the parameter value within the local method variable.inthashCode()toString()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 interface AnnotationSource
getDeclaredAnnotationsMethods inherited from interface ByteCodeElement.TypeDependant
asDefinedMethods inherited from interface ModifierReviewable
getSyntheticState, isFinal, isSyntheticMethods inherited from interface ModifierReviewable.ForParameterDescription
getParameterManifestation, getProvisioningStateMethods inherited from interface ModifierReviewable.OfMandatable
getMandate, isMandatedMethods inherited from interface NamedElement.WithOptionalName
isNamedMethods inherited from interface ParameterDescription
getDeclaringMethod, getIndex, getType, hasModifiers
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
getName
Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.- Specified by:
getNamein interfaceNamedElement.WithRuntimeName- Returns:
- The binary ame of this byte code element as visible from within a running Java application.
-
getInternalName
Returns the internal name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.- Specified by:
getInternalNamein interfaceNamedElement.WithRuntimeName- Returns:
- The internal name of this byte code element as used within the Java class file format.
-
getActualName
Returns the display name of this element as it is found in the source code. If no such name exists, an empty string is returned.- Specified by:
getActualNamein interfaceNamedElement- Returns:
- The name of this element as given in a Java program's source code.
-
getModifiers
public int getModifiers()Returns the modifier that is described by this object.- Specified by:
getModifiersin interfaceModifierReviewable- Returns:
- The modifier that is described by this object.
-
getOffset
Returns the offset to the parameter value within the local method variable.- Specified by:
getOffsetin interfaceParameterDescription- Returns:
- The offset of this parameter's value.
-
asToken
Returns a token representative of this type dependant. All types that are matched by the supplied matcher are replaced byTargetTypedescriptions.- Specified by:
asTokenin interfaceByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape, ParameterDescription.Token>- Parameters:
matcher- A matcher to identify types to be replaced byTargetTypedescriptions.- Returns:
- A token representative of this type dependant.
-
hashCode
-
equals
-
toString
-