protected class DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter extends DynamicType.Builder.MethodDefinition.AbstractBase.Adapter<U>
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter<V>DynamicType.Builder.AbstractBase.Delegator<U>DynamicType.Builder.MethodDefinition.AbstractBase<U>, DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>, DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>, DynamicType.Builder.MethodDefinition.ParameterDefinition<U>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.MethodDefinition<S>handler, methodAttributeAppenderFactory, methodTransformer| Modifier | Constructor and Description |
|---|---|
protected |
AnnotationAdapter(MethodRegistry.Handler handler)
Creates a new annotation adapter.
|
protected |
AnnotationAdapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new annotation adapter.
|
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.MethodDefinition<U> |
annotateMethod(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<U> |
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.
|
boolean |
equals(Object other) |
int |
hashCode() |
protected DynamicType.Builder<U> |
materialize()
Creates a new builder that realizes the current state of the builder.
|
protected DynamicType.Builder.MethodDefinition<U> |
materialize(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Materializes the current builder as a method definition.
|
String |
toString() |
attribute, transformannotateMethod, annotateMethod, annotateMethod, annotateParameter, annotateParameter, annotateParameterannotateType, attribute, defineConstructor, defineField, defineMethod, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, invokable, make, merge, modifiers, name, typeVariable, visitannotateType, annotateType, annotateType, constructor, define, define, define, define, define, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, field, implement, implement, implement, invokable, merge, method, modifiers, modifiers, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariableclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotateType, 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, visitprotected AnnotationAdapter(MethodRegistry.Handler handler)
handler - The handler that determines how a method is implemented.protected AnnotationAdapter(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, MethodTransformer methodTransformer)
handler - The handler that determines how a method is implemented.methodAttributeAppenderFactory - The method attribute appender factory to apply onto the method that is currently being implemented.methodTransformer - The method transformer to apply onto the method that is currently being implemnted.public DynamicType.Builder.MethodDefinition<U> annotateMethod(Collection<? extends AnnotationDescription> annotations)
DynamicType.Builder.MethodDefinitionannotations - The annotations to declare on the previously defined or matched method.public DynamicType.Builder.MethodDefinition<U> annotateParameter(int index, Collection<? extends AnnotationDescription> annotations)
DynamicType.Builder.MethodDefinitionindex - The parameter's index.annotations - The annotations to declare on the previously defined or matched method.protected DynamicType.Builder.MethodDefinition<U> materialize(MethodRegistry.Handler handler, MethodAttributeAppender.Factory methodAttributeAppenderFactory, MethodTransformer methodTransformer)
DynamicType.Builder.MethodDefinition.AbstractBase.Adaptermaterialize in class DynamicType.Builder.MethodDefinition.AbstractBase.Adapter<U>handler - The handler that determines how a method is implemented.methodAttributeAppenderFactory - The method attribute appender factory to apply onto the method that is currently being implemented.methodTransformer - The method transformer to apply onto the method that is currently being implemented.protected DynamicType.Builder<U> materialize()
DynamicType.Builder.AbstractBase.Delegatormaterialize in class DynamicType.Builder.AbstractBase.Delegator<U>public boolean equals(Object other)
equals in class DynamicType.Builder.MethodDefinition.AbstractBase.Adapter<U>public int hashCode()
hashCode in class DynamicType.Builder.MethodDefinition.AbstractBase.Adapter<U>Copyright © 2014–2016. All rights reserved.