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 DynamicType.Builder.MethodDefinition.ExceptionDefinition
DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<V>Nested classes/interfaces inherited from interface DynamicType.Builder.MethodDefinition.ImplementationDefinition
DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>Nested classes/interfaces inherited from interface 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 DynamicType.Builder.MethodDefinition.TypeVariableDefinition
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithParameter(Type type, String name, int modifiers) Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.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.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.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.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.Methods inherited from class DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase
throwing, throwing, throwingMethods inherited from class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase
typeVariable, typeVariable, typeVariable, typeVariableMethods inherited from class DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase
defaultValueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DynamicType.Builder.MethodDefinition.ExceptionDefinition
throwing, throwing, throwing, throwingMethods inherited from interface DynamicType.Builder.MethodDefinition.ImplementationDefinition
defaultValue, defaultValue, intercept, withoutCodeMethods inherited from interface DynamicType.Builder.MethodDefinition.ParameterDefinition
withParameterMethods inherited from interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
withParameter
public 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.- Specified by:
withParameterin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>- Parameters:
type- The parameter's type. Can also beTargetTypeif 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(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.- Specified by:
withParameterin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>- Parameters:
type- The parameter's type. Can also beTargetTypeif 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(Type type, String name, int modifiers) Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.- Specified by:
withParameterin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>- Parameters:
type- The parameter's type. Can also beTargetTypeif 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, 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:
withParameterin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>- Parameters:
type- The parameter's type. Can also beTargetTypeif 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, 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.- Specified by:
withParameterin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition<V>- Parameters:
type- The parameter's type. Can also beTargetTypeif 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.
-