Package net.bytebuddy.dynamic
Interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<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.TypeVariableDefinition<V>
- All Known Subinterfaces:
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
- All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter
,DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.SimpleParameterAnnotationAdapter
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.AbstractBase
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter
- Enclosing interface:
- DynamicType.Builder.MethodDefinition.ParameterDefinition<U>
public static interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V> extends DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or a parameter type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.AbstractBase<W>
An abstract base implementation of an exception definition.static interface
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
A builder for optionally 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>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
withParameter(java.lang.reflect.Type type)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
withParameter(TypeDefinition type)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.-
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.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
-
-
-
-
Method Detail
-
withParameter
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> withParameter(java.lang.reflect.Type type)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Parameters:
type
- The parameter's type. Can also beTargetType
if the parameter type should be equal to the currently instrumented type.- Returns:
- A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
-
withParameter
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> withParameter(TypeDefinition type)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Parameters:
type
- The parameter's type. Can also beTargetType
if the parameter type should be equal to the currently instrumented type.- Returns:
- A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
-
-