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.ReceiverTypeDefinition.AbstractBase<V>
DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>, DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>, DynamicType.Builder.MethodDefinition.ParameterDefinition<U>, DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<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.
|
DynamicType.Builder.MethodDefinition<U> |
receiverType(TypeDescription.Generic receiverType)
Defines the supplied (annotated) receiver type for the previously defined or matched method.
|
String |
toString() |
attribute, transform
receiverType
annotateMethod, annotateMethod, annotateMethod, annotateParameter, annotateParameter, annotateParameter
annotateType, attribute, defineConstructor, defineField, defineMethod, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, invokable, make, make, make, make, merge, modifiers, name, typeVariable, visit
annotateType, 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, typeVariable
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotateMethod, annotateMethod, annotateMethod, annotateParameter, annotateParameter, annotateParameter
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, make, make, make, merge, merge, method, modifiers, modifiers, modifiers, name, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, visit
protected 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> receiverType(TypeDescription.Generic receiverType)
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition
receiverType
- The receiver type to define on the previously defined or matched method.public DynamicType.Builder.MethodDefinition<U> annotateMethod(Collection<? extends AnnotationDescription> annotations)
DynamicType.Builder.MethodDefinition
annotations
- 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.MethodDefinition
index
- 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.Adapter
materialize
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.Delegator
materialize
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.