Package net.bytebuddy.dynamic
Class DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase<W>
- 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<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 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.ParameterDefinition.Initial
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase<W>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<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.Simple.Annotatable<W>
withParameter(java.lang.reflect.Type type)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<W>
withParameters(java.lang.reflect.Type... type)
Defines the specified parameters for the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<W>
withParameters(java.util.Collection<? extends TypeDefinition> types)
Defines the specified parameters for the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<W>
withParameters(java.util.List<? extends java.lang.reflect.Type> types)
Defines the specified parameters for the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<W>
withParameters(TypeDefinition... type)
Defines the specified parameters for the currently defined method.-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase
withParameter, withParameter, withParameter, withParameter, withParameter
-
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, withParameter, withParameter, withParameter, withParameter, withParameter
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple
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.Simple.Annotatable<W> withParameter(java.lang.reflect.Type type)
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.Simple<W>
- Parameters:
type
- The parameter's type. Can also beTargetType
if 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
public DynamicType.Builder.MethodDefinition.ExceptionDefinition<W> withParameters(java.lang.reflect.Type... type)
Defines the specified parameters for the currently defined method.- Specified by:
withParameters
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>
- Parameters:
type
- The parameter types. Any type can also beTargetType
if 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(java.util.List<? extends java.lang.reflect.Type> types)
Defines the specified parameters for the currently defined method.- Specified by:
withParameters
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>
- Parameters:
types
- The parameter types. Any type can also beTargetType
if 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:
withParameters
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>
- Parameters:
type
- The parameter types. Any type can also beTargetType
if 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(java.util.Collection<? extends TypeDefinition> types)
Defines the specified parameters for the currently defined method.- Specified by:
withParameters
in interfaceDynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<W>
- Parameters:
types
- The parameter types. Any type can also beTargetType
if 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.
-
-