U
- A loaded type that the built type is guaranteed to be a subclass of.public static interface DynamicType.Builder.MethodDefinition.ParameterDefinition<U> extends DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>
Modifier and Type | Interface and Description |
---|---|
static class |
DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<V>
An abstract base implementation for defining an implementation of a method and optionally definign a type variable, thrown exception or parameter type.
|
static interface |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>
A builder for optionally defining an annotation on a parameter.
|
static interface |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>
A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.
|
static interface |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or a parameter type.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
withParameter(TypeDefinition type,
String name,
Collection<? extends ModifierContributor.ForParameter> modifierContributors)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
withParameter(TypeDefinition type,
String name,
int modifiers)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
withParameter(TypeDefinition type,
String name,
ModifierContributor.ForParameter... modifierContributor)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
withParameter(Type type,
String name,
Collection<? extends ModifierContributor.ForParameter> modifierContributors)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
withParameter(Type type,
String name,
int modifiers)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
withParameter(Type type,
String name,
ModifierContributor.ForParameter... modifierContributor)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
throwing, throwing, throwing, throwing
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
defaultValue, defaultValue, intercept, withoutCode
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter(Type type, String name, ModifierContributor.ForParameter... modifierContributor)
type
- The parameter's type. Can also be TargetType
if the parameter type
should be equal to the currently instrumented type.name
- The parameter's name.modifierContributor
- The parameter's modifiers.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter(Type type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors)
type
- The parameter's type. Can also be TargetType
if the parameter type
should be equal to the currently instrumented type.name
- The parameter's name.modifierContributors
- The parameter's modifiers.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter(Type type, String name, int modifiers)
type
- The parameter's type. Can also be TargetType
if the parameter type
should be equal to the currently instrumented type.name
- The parameter's name.modifiers
- The parameter's modifiers.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter(TypeDefinition type, String name, ModifierContributor.ForParameter... modifierContributor)
type
- The parameter's type. Can also be TargetType
if the parameter type
should be equal to the currently instrumented type.name
- The parameter's name.modifierContributor
- The parameter's modifiers.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter(TypeDefinition type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors)
type
- The parameter's type. Can also be TargetType
if the parameter type
should be equal to the currently instrumented type.name
- The parameter's name.modifierContributors
- The parameter's modifiers.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter(TypeDefinition type, String name, int modifiers)
type
- The parameter's type. Can also be TargetType
if the parameter type
should be equal to the currently instrumented type.name
- The parameter's name.modifiers
- The parameter's modifiers.Copyright © 2014–2016. All rights reserved.