Package net.bytebuddy.dynamic
Interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>
- Type Parameters:
V
- A loaded type that the built type is guaranteed to be a subclass of.
- All Superinterfaces:
DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
,DynamicType.Builder.MethodDefinition.ImplementationDefinition<V>
,DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
,DynamicType.Builder.MethodDefinition.TypeVariableDefinition<V>
- All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.ParameterAnnotationAdapter
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter
- Enclosing interface:
DynamicType.Builder.MethodDefinition.ParameterDefinition<U>
public static interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>
extends DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
A builder for optionally defining an annotation on a parameter.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An abstract base implementation for defining an annotation on a parameter.Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
-
Method Summary
Modifier and TypeMethodDescriptionannotateParameter
(Annotation... annotation) Annotates the previously defined parameter with the specified annotations.annotateParameter
(Collection<? extends AnnotationDescription> annotations) Annotates the previously defined parameter with the specified annotations.annotateParameter
(List<? extends Annotation> annotations) Annotates the previously defined parameter with the specified annotations.annotateParameter
(AnnotationDescription... annotation) Annotates the previously defined parameter with the specified annotations.Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ExceptionDefinition
throwing, throwing, throwing, throwing
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition
defaultValue, defaultValue, intercept, withoutCode
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition
withParameter, withParameter, withParameter, withParameter, withParameter, withParameter
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
-
Method Details
-
annotateParameter
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> annotateParameter(Annotation... annotation) Annotates the previously defined parameter with the specified annotations.- Parameters:
annotation
- The annotations to declare on the previously defined parameter.- Returns:
- A new builder that is equal to this builder but with the previously defined parameter annotated with the specified annotations.
-
annotateParameter
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> annotateParameter(List<? extends Annotation> annotations) Annotates the previously defined parameter with the specified annotations.- Parameters:
annotations
- The annotations to declare on the previously defined parameter.- Returns:
- A new builder that is equal to this builder but with the previously defined parameter annotated with the specified annotations.
-
annotateParameter
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> annotateParameter(AnnotationDescription... annotation) Annotates the previously defined parameter with the specified annotations.- Parameters:
annotation
- The annotations to declare on the previously defined parameter.- Returns:
- A new builder that is equal to this builder but with the previously defined parameter annotated with the specified annotations.
-
annotateParameter
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations) Annotates the previously defined parameter with the specified annotations.- Parameters:
annotations
- The annotations to declare on the previously defined parameter.- Returns:
- A new builder that is equal to this builder but with the previously defined parameter annotated with the specified annotations.
-