V
- A loaded type that the built type is guaranteed to be a subclass of.protected abstract static class DynamicType.Builder.MethodDefinition.AbstractBase.Adapter<V> extends DynamicType.Builder.MethodDefinition.AbstractBase<V>
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>
Modifier and Type | Field and Description |
---|---|
protected MethodRegistry.Handler |
handler
The handler that determines how a method is implemented.
|
protected MethodAttributeAppender.Factory |
methodAttributeAppenderFactory
The method attribute appender factory to apply onto the method that is currently being implemented.
|
protected MethodTransformer |
methodTransformer
The method transformer to apply onto the method that is currently being implemented.
|
Modifier | Constructor and Description |
---|---|
protected |
Adapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new adapter for a method definition.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition<V> |
attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Applies the supplied method attribute appender factory onto the previously defined or matched method.
|
boolean |
equals(Object other) |
int |
hashCode() |
protected abstract DynamicType.Builder.MethodDefinition<V> |
materialize(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Materializes the current builder as a method definition.
|
DynamicType.Builder.MethodDefinition<V> |
transform(MethodTransformer methodTransformer)
Applies the supplied method transformer onto the previously defined or matched method.
|
annotateMethod, annotateMethod, annotateMethod, annotateParameter, annotateParameter, annotateParameter
annotateType, attribute, defineConstructor, defineField, defineMethod, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, invokable, make, materialize, 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, toString, wait, wait, wait
annotateMethod, 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, merge, merge, method, modifiers, modifiers, modifiers, name, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, visit
protected final MethodRegistry.Handler handler
protected final MethodAttributeAppender.Factory methodAttributeAppenderFactory
protected final MethodTransformer methodTransformer
protected Adapter(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 implemented.public DynamicType.Builder.MethodDefinition<V> attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory)
DynamicType.Builder.MethodDefinition
methodAttributeAppenderFactory
- The method attribute appender factory that should be applied on the
previously defined or matched method.public DynamicType.Builder.MethodDefinition<V> transform(MethodTransformer methodTransformer)
DynamicType.Builder.MethodDefinition
methodTransformer
- The method transformer to apply to the previously defined or matched method.protected abstract DynamicType.Builder.MethodDefinition<V> materialize(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 implemented.Copyright © 2014–2016. All rights reserved.