Class DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase<W>
java.lang.Object
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<W>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<W>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<W>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<W>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase<W>
- Type Parameters:
W- A loaded type that the built type is guaranteed to be a subclass of.
- All Implemented Interfaces:
DynamicType.Builder.MethodDefinition.ExceptionDefinition<W>, DynamicType.Builder.MethodDefinition.ImplementationDefinition<W>, DynamicType.Builder.MethodDefinition.ParameterDefinition<W>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<W>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition<W>
- Direct Known Subclasses:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter
- Enclosing interface:
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>
public abstract static class DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase<W>
extends DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase<W>
implements DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>
An abstract base implementation for an initial parameter definition.
-
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.ParameterDefinition.Initial
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase<W>Nested classes/interfaces inherited from interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<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) Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.withParameters(Type... type) Defines the specified parameters for the currently defined method.withParameters(Collection<? extends TypeDefinition> types) Defines the specified parameters for the currently defined method.withParameters(List<? extends Type> types) Defines the specified parameters for the currently defined method.withParameters(TypeDefinition... type) Defines the specified parameters for the currently defined method.Methods inherited from class DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase
withParameter, withParameter, withParameter, withParameter, withParameterMethods 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
withParameter, withParameter, withParameter, withParameter, withParameter, withParameterMethods inherited from interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple
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.Simple.Annotatable<W> withParameter(Type type) 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.Simple<W>- Parameters:
type- The parameter's type. Can also beTargetTypeif 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.
-
withParameters
Defines the specified parameters for the currently defined method.- Specified by:
withParametersin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>- Parameters:
type- The parameter types. Any type can also beTargetTypeif 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 parameters.
-
withParameters
public DynamicType.Builder.MethodDefinition.ExceptionDefinition<W> withParameters(List<? extends Type> types) Defines the specified parameters for the currently defined method.- Specified by:
withParametersin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>- Parameters:
types- The parameter types. Any type can also beTargetTypeif 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 parameters.
-
withParameters
public DynamicType.Builder.MethodDefinition.ExceptionDefinition<W> withParameters(TypeDefinition... type) Defines the specified parameters for the currently defined method.- Specified by:
withParametersin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>- Parameters:
type- The parameter types. Any type can also beTargetTypeif 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 parameters.
-
withParameters
public DynamicType.Builder.MethodDefinition.ExceptionDefinition<W> withParameters(Collection<? extends TypeDefinition> types) Defines the specified parameters for the currently defined method.- Specified by:
withParametersin interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>- Parameters:
types- The parameter types. Any type can also beTargetTypeif 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 parameters.
-