Package net.bytebuddy.dynamic
Class DynamicType.Builder.MethodDefinition.ExceptionDefinition.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>
- 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.TypeVariableDefinition<V>
- Direct Known Subclasses:
DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase
,DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.AbstractBase
- Enclosing interface:
- DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>
public abstract static class DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase<V>
extends DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<V>
implements DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
An abstract base implementation for defining an implementation of a method and optionally defining a type variable or thrown exception.
-
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.TypeVariableDefinition
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefines a method variable to be declared by the currently defined method.Defines a method variable to be declared by the currently defined method.throwing
(TypeDefinition... type) Defines a method variable to be declared by the currently defined method.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
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.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
throwing
Defines a method variable to be declared by the currently defined method.- Specified by:
throwing
in interfaceDynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
- Parameters:
type
- The type of the exception being declared by the currently defined method.- Returns:
- A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.
-
throwing
public DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> throwing(List<? extends Type> types) Defines a method variable to be declared by the currently defined method.- Specified by:
throwing
in interfaceDynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
- Parameters:
types
- The type of the exception being declared by the currently defined method.- Returns:
- A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.
-
throwing
Defines a method variable to be declared by the currently defined method.- Specified by:
throwing
in interfaceDynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
- Parameters:
type
- The type of the exception being declared by the currently defined method.- Returns:
- A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.
-