Package net.bytebuddy.dynamic
Class DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.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<W>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.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.Simple<W>
,DynamicType.Builder.MethodDefinition.TypeVariableDefinition<W>
- Direct Known Subclasses:
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase
- Enclosing interface:
- DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
public abstract static class DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.AbstractBase<W>
extends DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<W>
implements DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<W>
An abstract base implementation of an exception 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.Simple
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.AbstractBase<W>, 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 -
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.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.Simple
withParameter
Methods inherited from interface net.bytebuddy.dynamic.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:
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.
-