S
- The most specific known loaded type that is implemented by the created dynamic type, usually the
type itself, an interface or the direct super class.public static interface DynamicType.Builder.MethodAnnotationTarget<S> extends DynamicType.Builder<S>
DynamicType.Builder.AbstractBase<S>, DynamicType.Builder.ExceptionDeclarableMethodInterception<S>, DynamicType.Builder.FieldAnnotationTarget<S>, DynamicType.Builder.FieldValueTarget<S>, DynamicType.Builder.MatchedMethodInterception<S>, DynamicType.Builder.MethodAnnotationTarget<S>, DynamicType.Builder.OptionalMatchedMethodInterception<S>
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateMethod(Annotation... annotation)
Defines annotations to be added to the currently selected method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateMethod(AnnotationDescription... annotation)
Defines annotations to be added to the currently selected method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateMethod(Collection<? extends AnnotationDescription> annotations)
Defines annotations to be added to the currently selected method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateMethod(Iterable<? extends Annotation> annotations)
Defines annotations to be added to the currently selected method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateParameter(int parameterIndex,
Annotation... annotation)
Defines annotations to be added to a parameter of the currently selected methods.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateParameter(int parameterIndex,
AnnotationDescription... annotation)
Defines annotations to be added to a parameter of the currently selected methods.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateParameter(int parameterIndex,
Collection<? extends AnnotationDescription> annotations)
Defines annotations to be added to a parameter of the currently selected methods.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
annotateParameter(int parameterIndex,
Iterable<? extends Annotation> annotations)
Defines annotations to be added to a parameter of the currently selected methods.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
attribute(MethodAttributeAppender.Factory attributeAppenderFactory)
Defines an attribute appender factory to be applied onto the currently selected methods.
|
annotateType, annotateType, annotateType, annotateType, attribute, classFileVersion, classVisitor, constructor, context, define, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, ignoreMethods, implement, implement, implement, implement, invokable, invokable, make, method, methodGraphCompiler, modifiers, modifiers, name, name, name
DynamicType.Builder.MethodAnnotationTarget<S> attribute(MethodAttributeAppender.Factory attributeAppenderFactory)
attributeAppenderFactory
- The attribute appender factory to apply onto the currently selected
methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateMethod(Annotation... annotation)
Note: The annotations will not be visible to
Implementation
s.annotation
- The annotations to add to the currently selected methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateMethod(Iterable<? extends Annotation> annotations)
Note: The annotations will not be visible to
Implementation
s.annotations
- The annotations to add to the currently selected methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateMethod(AnnotationDescription... annotation)
Note: The annotations will not be visible to
Implementation
s.annotation
- The annotations to add to the currently selected methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateMethod(Collection<? extends AnnotationDescription> annotations)
Note: The annotations will not be visible to
Implementation
s.annotations
- The annotations to add to the currently selected methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateParameter(int parameterIndex, Annotation... annotation)
Note: The annotations will not be visible to
Implementation
s.parameterIndex
- The index of the parameter to annotate.annotation
- The annotations to add to a parameter of the currently selected methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateParameter(int parameterIndex, Iterable<? extends Annotation> annotations)
Note: The annotations will not be visible to
Implementation
s.parameterIndex
- The index of the parameter to annotate.annotations
- The annotations to add to a parameter of the currently selected methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateParameter(int parameterIndex, AnnotationDescription... annotation)
Note: The annotations will not be visible to
Implementation
s.parameterIndex
- The index of the parameter to annotate.annotation
- The annotations to add to a parameter of the currently selected methods.DynamicType.Builder.MethodAnnotationTarget<S> annotateParameter(int parameterIndex, Collection<? extends AnnotationDescription> annotations)
Note: The annotations will not be visible to
Implementation
s.parameterIndex
- The index of the parameter to annotate.annotations
- The annotations to add to a parameter of the currently selected methods.Copyright © 2014–2015. All rights reserved.