Package net.bytebuddy.dynamic
Interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.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.Simple<V>
,DynamicType.Builder.MethodDefinition.TypeVariableDefinition<V>
- All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.SimpleParameterAnnotationAdapter
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter
- Enclosing interface:
- DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
public static interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> extends DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
A builder for optionally defining an annotation on a parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase<W>
An abstract base implementation of a simple parameter definition.-
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.Simple
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
annotateParameter(java.lang.annotation.Annotation... annotation)
Annotates the previously defined parameter with the specified annotations.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
annotateParameter(java.util.Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined parameter with the specified annotations.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
annotateParameter(java.util.List<? extends java.lang.annotation.Annotation> annotations)
Annotates the previously defined parameter with the specified annotations.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
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.Simple
withParameter, withParameter
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
-
-
-
-
Method Detail
-
annotateParameter
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> annotateParameter(java.lang.annotation.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.Simple.Annotatable<V> annotateParameter(java.util.List<? extends java.lang.annotation.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.Simple.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.Simple.Annotatable<V> annotateParameter(java.util.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.
-
-