V
- A loaded type that the built type is guaranteed to be a subclass of.public abstract static class DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<V> extends DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<V> implements DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
Constructor and Description |
---|
AbstractBase() |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> |
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<V> |
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<V> |
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<V> |
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<V> |
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
typeVariable, typeVariable, typeVariable, typeVariable
defaultValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withParameter
throwing, throwing, throwing, throwing
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
defaultValue, defaultValue, intercept, withoutCode
public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(Type type, String name, ModifierContributor.ForParameter... modifierContributor)
DynamicType.Builder.MethodDefinition.ParameterDefinition
withParameter
in interface DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
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.public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(Type type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors)
DynamicType.Builder.MethodDefinition.ParameterDefinition
withParameter
in interface DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
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.public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(Type type, String name, int modifiers)
DynamicType.Builder.MethodDefinition.ParameterDefinition
withParameter
in interface DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
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.public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, String name, ModifierContributor.ForParameter... modifierContributor)
DynamicType.Builder.MethodDefinition.ParameterDefinition
withParameter
in interface DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
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.public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors)
DynamicType.Builder.MethodDefinition.ParameterDefinition
withParameter
in interface DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
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.Copyright © 2014–2016. All rights reserved.