Package net.bytebuddy.description.method
Class ParameterDescription.ForLoadedParameter.OfLegacyVmMethod
- java.lang.Object
-
- net.bytebuddy.description.ModifierReviewable.AbstractBase
-
- net.bytebuddy.description.method.ParameterDescription.AbstractBase
-
- net.bytebuddy.description.method.ParameterDescription.InDefinedShape.AbstractBase
-
- net.bytebuddy.description.method.ParameterDescription.ForLoadedParameter.OfLegacyVmMethod
-
- All Implemented Interfaces:
AnnotationSource,ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>,ParameterDescription,ParameterDescription.InDefinedShape,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
- Enclosing class:
- ParameterDescription.ForLoadedParameter<T extends java.lang.reflect.AccessibleObject>
protected static class ParameterDescription.ForLoadedParameter.OfLegacyVmMethod extends ParameterDescription.InDefinedShape.AbstractBase
Description of a loaded method's parameter on a virtual machine wherejava.lang.reflect.Parameteris not available.
-
-
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.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable
-
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
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.method.ParameterDescription.InDefinedShape
ParameterDescription.InDefinedShape.AbstractBase
-
-
Field Summary
Fields Modifier and Type Field Description private intindexThe index of this parameter.private java.lang.reflect.MethodmethodThe method that declares this parameter.private ParameterDescription.ForLoadedParameter.ParameterAnnotationSourceparameterAnnotationSourceThe parameter annotation source to query.private java.lang.Class<?>[]parameterTypeThe type erasures of the represented method.-
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 Modifier Constructor Description protectedOfLegacyVmMethod(java.lang.reflect.Method method, int index, java.lang.Class<?>[] parameterType, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)Creates a legacy representation of a method's parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationListgetDeclaredAnnotations()Returns a list of annotations that are declared by this instance.MethodDescription.InDefinedShapegetDeclaringMethod()Returns the method that declares this parameter.intgetIndex()Returns this parameter's index.TypeDescription.GenericgetType()Returns the type of this parameter.booleanhasModifiers()Checks if this parameter has an explicit modifier.booleanisNamed()Returnstrueif this element has an explicit name.-
Methods inherited from class net.bytebuddy.description.method.ParameterDescription.InDefinedShape.AbstractBase
asDefined
-
Methods inherited from class net.bytebuddy.description.method.ParameterDescription.AbstractBase
asToken, equals, getActualName, getInternalName, getModifiers, getName, getOffset, hashCode, toString
-
Methods inherited from class net.bytebuddy.description.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, isVolatile
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.ByteCodeElement.TypeDependant
asToken
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSynthetic
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.ForParameterDescription
getParameterManifestation, getProvisioningState
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfMandatable
getMandate, isMandated
-
Methods inherited from interface net.bytebuddy.description.NamedElement
getActualName
-
Methods inherited from interface net.bytebuddy.description.NamedElement.WithRuntimeName
getInternalName, getName
-
Methods inherited from interface net.bytebuddy.description.method.ParameterDescription
getOffset
-
-
-
-
Field Detail
-
method
private final java.lang.reflect.Method method
The method that declares this parameter.
-
index
private final int index
The index of this parameter.
-
parameterType
private final java.lang.Class<?>[] parameterType
The type erasures of the represented method.
-
parameterAnnotationSource
private final ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource
The parameter annotation source to query.
-
-
Constructor Detail
-
OfLegacyVmMethod
protected OfLegacyVmMethod(java.lang.reflect.Method method, int index, java.lang.Class<?>[] parameterType, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)Creates a legacy representation of a method's parameter.- Parameters:
method- The method that declares this parameter.index- The index of this parameter.parameterType- The type erasures of the represented method.parameterAnnotationSource- The parameter annotation source to query.
-
-
Method Detail
-
getType
public TypeDescription.Generic getType()
Returns the type of this parameter.- Returns:
- The type of this parameter.
-
getDeclaringMethod
public MethodDescription.InDefinedShape getDeclaringMethod()
Returns the method that declares this parameter.- Returns:
- The method that declares this parameter.
-
getIndex
public int getIndex()
Returns this parameter's index.- Returns:
- The index of this parameter.
-
isNamed
public boolean isNamed()
Returnstrueif this element has an explicit name.- Returns:
trueif this element has an explicit name.
-
hasModifiers
public boolean hasModifiers()
Checks if this parameter has an explicit modifier. A parameter without a modifier is simply treated as if it had a modifier of zero.- Returns:
trueif this parameter defines explicit modifiers.
-
getDeclaredAnnotations
public AnnotationList getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-
-