S
- A loaded type that the built type is guaranteed to be a subclass of.public static interface DynamicType.Builder.MethodDefinition<S> extends DynamicType.Builder<S>
Modifier and Type | Interface and Description |
---|---|
static class |
DynamicType.Builder.MethodDefinition.AbstractBase<U>
An abstract base implementation of a method definition.
|
static interface |
DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>
A builder for defining an implementation of a method and optionally defining a type variable or thrown exception.
|
static interface |
DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
A builder for defining an implementation of a method.
|
static interface |
DynamicType.Builder.MethodDefinition.ParameterDefinition<U>
A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.
|
static interface |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U>
A builder for a method definition with a receiver type.
|
static interface |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>
A builder for defining an implementation of a method and optionally defining a type variable.
|
DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.MethodDefinition<S>
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition<S> |
annotateMethod(Annotation... annotation)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
annotateMethod(AnnotationDescription... annotation)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
annotateMethod(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
annotateMethod(List<? extends Annotation> annotations)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
annotateParameter(int index,
Annotation... annotation)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
annotateParameter(int index,
AnnotationDescription... annotation)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
annotateParameter(int index,
Collection<? extends AnnotationDescription> annotations)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
annotateParameter(int index,
List<? extends Annotation> annotations)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Applies the supplied method attribute appender factory onto the previously defined or matched method.
|
DynamicType.Builder.MethodDefinition<S> |
transform(MethodTransformer methodTransformer)
Applies the supplied method transformer onto the previously defined or matched method.
|
annotateType, annotateType, annotateType, annotateType, attribute, constructor, define, define, define, define, define, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, field, field, ignoreAlso, ignoreAlso, implement, implement, implement, implement, initializer, initializer, invokable, invokable, make, merge, merge, method, modifiers, modifiers, modifiers, name, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, visit
DynamicType.Builder.MethodDefinition<S> annotateMethod(Annotation... annotation)
annotation
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> annotateMethod(List<? extends Annotation> annotations)
annotations
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> annotateMethod(AnnotationDescription... annotation)
annotation
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> annotateMethod(Collection<? extends AnnotationDescription> annotations)
annotations
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> annotateParameter(int index, Annotation... annotation)
index
- The parameter's index.annotation
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> annotateParameter(int index, List<? extends Annotation> annotations)
index
- The parameter's index.annotations
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> annotateParameter(int index, AnnotationDescription... annotation)
index
- The parameter's index.annotation
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> annotateParameter(int index, Collection<? extends AnnotationDescription> annotations)
index
- The parameter's index.annotations
- The annotations to declare on the previously defined or matched method.DynamicType.Builder.MethodDefinition<S> attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory)
methodAttributeAppenderFactory
- The method attribute appender factory that should be applied on the
previously defined or matched method.DynamicType.Builder.MethodDefinition<S> transform(MethodTransformer methodTransformer)
methodTransformer
- The method transformer to apply to the previously defined or matched method.Copyright © 2014–2016. All rights reserved.