protected class DynamicType.Builder.AbstractBase.Adapter.OptionalMethodMatchAdapter extends DynamicType.Builder.AbstractBase.Delegator<U> implements DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<U>
DynamicType.Builder.AbstractBase.Adapter<U>, DynamicType.Builder.AbstractBase.Delegator<U>
DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
DynamicType.Builder.AbstractBase<S>, DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.MethodDefinition<S>, DynamicType.Builder.TypeVariableDefinition<S>
Modifier | Constructor and Description |
---|---|
protected |
OptionalMethodMatchAdapter(TypeList.Generic interfaces)
Creates a new optional method match adapter.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
defaultValue(AnnotationValue<?,?> annotationValue)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
<V> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
defaultValue(V value,
Class<? extends V> type)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
boolean |
equals(Object other) |
int |
hashCode() |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
intercept(Implementation implementation)
Implements the previously defined or matched method by the supplied implementation.
|
protected DynamicType.Builder<U> |
materialize()
Creates a new builder that realizes the current state of the builder.
|
String |
toString() |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
withoutCode()
Defines the previously defined or matched method to be
abstract . |
annotateType, attribute, defineConstructor, defineField, defineMethod, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, invokable, make, make, make, make, merge, modifiers, name, transform, 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
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, transform, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, visit
protected OptionalMethodMatchAdapter(TypeList.Generic interfaces)
interfaces
- The interfaces whose methods are optionally matched.protected DynamicType.Builder<U> materialize()
DynamicType.Builder.AbstractBase.Delegator
materialize
in class DynamicType.Builder.AbstractBase.Delegator<U>
public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> intercept(Implementation implementation)
DynamicType.Builder.MethodDefinition.ImplementationDefinition
intercept
in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
implementation
- The implementation for implementing the previously defined or matched method.public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> withoutCode()
DynamicType.Builder.MethodDefinition.ImplementationDefinition
abstract
.withoutCode
in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> defaultValue(AnnotationValue<?,?> annotationValue)
DynamicType.Builder.MethodDefinition.ImplementationDefinition
EnumerationDescription
,
types as TypeDescription
and annotations as AnnotationDescription
. For supplying loaded types, use
DynamicType.Builder.MethodDefinition.ImplementationDefinition.defaultValue(Object, Class)
must be used.defaultValue
in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
annotationValue
- The value to be defined as a default value.public <V> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> defaultValue(V value, Class<? extends V> type)
DynamicType.Builder.MethodDefinition.ImplementationDefinition
defaultValue
in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
V
- The type of the annotation property.value
- The value to be defined as a default value.type
- The type of the annotation property.Copyright © 2014–2017. All rights reserved.