Package net.bytebuddy.dynamic
Class DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<V>
- java.lang.Object
-
- net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>
-
- net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<V>
-
- net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<V>
-
- net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<V>
-
- Type Parameters:
V
- A loaded type that the built type is guaranteed to be a subclass of.
- All Implemented Interfaces:
DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
,DynamicType.Builder.MethodDefinition.ImplementationDefinition<V>
,DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
,DynamicType.Builder.MethodDefinition.TypeVariableDefinition<V>
- Direct Known Subclasses:
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase
- Enclosing interface:
- DynamicType.Builder.MethodDefinition.ParameterDefinition<U>
public abstract static class DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<V> extends DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<V> implements DynamicType.Builder.MethodDefinition.ParameterDefinition<V>
An abstract base implementation for defining an implementation of a method and optionally defining a type variable, thrown exception or parameter type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ExceptionDefinition
DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<V>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition
DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition
DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>
withParameter(java.lang.reflect.Type type, java.lang.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(java.lang.reflect.Type type, java.lang.String name, java.util.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(java.lang.reflect.Type type, java.lang.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(TypeDefinition type, java.lang.String name, java.util.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, java.lang.String name, ModifierContributor.ForParameter... modifierContributor)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase
throwing, throwing, throwing
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase
typeVariable, typeVariable, typeVariable, typeVariable
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase
defaultValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
-
-
-
-
Method Detail
-
withParameter
public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(java.lang.reflect.Type type, java.lang.String name, ModifierContributor.ForParameter... modifierContributor)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Specified by:
withParameter
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>
- Parameters:
type
- The parameter's type. Can also beTargetType
if the parameter type should be equal to the currently instrumented type.name
- The parameter's name.modifierContributor
- The parameter's modifiers.- Returns:
- A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
-
withParameter
public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(java.lang.reflect.Type type, java.lang.String name, java.util.Collection<? extends ModifierContributor.ForParameter> modifierContributors)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Specified by:
withParameter
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>
- Parameters:
type
- The parameter's type. Can also beTargetType
if the parameter type should be equal to the currently instrumented type.name
- The parameter's name.modifierContributors
- The parameter's modifiers.- Returns:
- A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
-
withParameter
public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(java.lang.reflect.Type type, java.lang.String name, int modifiers)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Specified by:
withParameter
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>
- Parameters:
type
- The parameter's type. Can also beTargetType
if the parameter type should be equal to the currently instrumented type.name
- The parameter's name.modifiers
- The parameter's modifiers.- Returns:
- A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
-
withParameter
public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, java.lang.String name, ModifierContributor.ForParameter... modifierContributor)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Specified by:
withParameter
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>
- Parameters:
type
- The parameter's type. Can also beTargetType
if the parameter type should be equal to the currently instrumented type.name
- The parameter's name.modifierContributor
- The parameter's modifiers.- Returns:
- A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
-
withParameter
public DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, java.lang.String name, java.util.Collection<? extends ModifierContributor.ForParameter> modifierContributors)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Specified by:
withParameter
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>
- Parameters:
type
- The parameter's type. Can also beTargetType
if the parameter type should be equal to the currently instrumented type.name
- The parameter's name.modifierContributors
- The parameter's modifiers.- Returns:
- A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
-
-