protected class DynamicType.Builder.AbstractBase.DefaultMethodAnnotationTarget extends DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder<S> implements DynamicType.Builder.MethodAnnotationTarget<S>
DynamicType.Builder.MethodAnnotationTarget which allows the definition of
annotations for a recently identified method.DynamicType.Builder.AbstractBase<S>, DynamicType.Builder.ExceptionDeclarableMethodInterception<S>, DynamicType.Builder.FieldAnnotationTarget<S>, DynamicType.Builder.FieldValueTarget<S>, DynamicType.Builder.MatchedMethodInterception<T>, 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> |
annotateParameter(int parameterIndex,
Annotation... annotation)
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.
|
boolean |
equals(Object other) |
int |
hashCode() |
protected DynamicType.Builder<S> |
materialize()
Materializes the current state of the build before applying another modification.
|
String |
toString() |
annotateType, attribute, bridgeMethodResolverFactory, classFileVersion, classVisitor, constructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, ignoreMethods, implement, implement, invokable, make, method, methodLookupEngine, modifiers, modifiers, name, nameclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotateType, attribute, bridgeMethodResolverFactory, classFileVersion, classVisitor, constructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, ignoreMethods, implement, implement, invokable, make, method, methodLookupEngine, modifiers, modifiers, name, nameprotected DynamicType.Builder<S> materialize()
DynamicType.Builder.AbstractBase.AbstractDelegatingBuildermaterialize in class DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder<S>public DynamicType.Builder.MethodAnnotationTarget<S> attribute(MethodAttributeAppender.Factory attributeAppenderFactory)
DynamicType.Builder.MethodAnnotationTargetattribute in interface DynamicType.Builder.MethodAnnotationTarget<S>attributeAppenderFactory - The attribute appender factory to apply onto the currently selected
methods.public DynamicType.Builder.MethodAnnotationTarget<S> annotateMethod(Annotation... annotation)
DynamicType.Builder.MethodAnnotationTargetNote: The annotations will not be visible to
Instrumentations.annotateMethod in interface DynamicType.Builder.MethodAnnotationTarget<S>annotation - The annotations to add to the currently selected methods.public DynamicType.Builder.MethodAnnotationTarget<S> annotateParameter(int parameterIndex, Annotation... annotation)
DynamicType.Builder.MethodAnnotationTargetNote: The annotations will not be visible to
Instrumentations.annotateParameter in interface DynamicType.Builder.MethodAnnotationTarget<S>parameterIndex - The index of the parameter to annotate.annotation - The annotations to add to a parameter of the currently selected methods.Copyright © 2014–2015. All rights reserved.