Package net.bytebuddy.description.method
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.ForParameterDescription,ModifierReviewable.ForTypeDefinition,ModifierReviewable.OfAbstraction,ModifierReviewable.OfByteCodeElement,ModifierReviewable.OfEnumeration,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 net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
-
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.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.method.ParameterDescription
ParameterDescription.AbstractBase, ParameterDescription.ForLoadedParameter<T extends java.lang.reflect.AccessibleObject>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstituting
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASK
-
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
Fields inherited from interface net.bytebuddy.description.method.ParameterDescription
NAME_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterDescription.TokenasToken(ElementMatcher<? super TypeDescription> matcher)Returns a token representative of this type dependant.booleanequals(java.lang.Object other)java.lang.StringgetActualName()Returns the name of this element as it is found in the source code.java.lang.StringgetInternalName()Returns the internal internalName of this byte code element.intgetModifiers()Returns the modifier that is described by this object.java.lang.StringgetName()Returns the internalName of this byte code element.intgetOffset()Returns the offset to the parameter value within the local method variable.inthashCode()java.lang.StringtoString()-
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, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotations
-
Methods inherited from interface net.bytebuddy.description.ByteCodeElement.TypeDependant
asDefined
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getSyntheticState, isFinal, isSynthetic
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.ForParameterDescription
getParameterManifestation, getProvisioningState, isMandated
-
Methods inherited from interface net.bytebuddy.description.NamedElement.WithOptionalName
isNamed
-
Methods inherited from interface net.bytebuddy.description.method.ParameterDescription
getDeclaringMethod, getIndex, getType, hasModifiers
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the internalName of this byte code element.- Specified by:
getNamein interfaceNamedElement.WithRuntimeName- Returns:
- The internalName of this byte code element as visible from within a running Java application.
-
getInternalName
public java.lang.String getInternalName()
Returns the internal internalName of this byte code element.- Specified by:
getInternalNamein interfaceNamedElement.WithRuntimeName- Returns:
- The internal internalName of this byte code element as used within the Java class file format.
-
getActualName
public java.lang.String getActualName()
Returns the 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
public int 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
public ParameterDescription.Token asToken(ElementMatcher<? super TypeDescription> matcher)
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
@Enhance("hashCode") public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-