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<U> |
defaultValue(Object value)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
DynamicType.Builder.MethodDefinition<U> |
defaultValue(Object value,
Class<?> 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<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<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, 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 OptionalMethodMatchAdapter(TypeList.Generic interfaces)
interfaces - The interfaces whose methods are optionally matched.protected DynamicType.Builder<U> materialize()
DynamicType.Builder.AbstractBase.Delegatormaterialize in class DynamicType.Builder.AbstractBase.Delegator<U>public DynamicType.Builder.MethodDefinition<U> intercept(Implementation implementation)
DynamicType.Builder.MethodDefinition.ImplementationDefinitionintercept in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>implementation - The implementation for implementing the previously defined or matched method.public DynamicType.Builder.MethodDefinition<U> withoutCode()
DynamicType.Builder.MethodDefinition.ImplementationDefinitionabstract.withoutCode in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>public DynamicType.Builder.MethodDefinition<U> defaultValue(Object value)
DynamicType.Builder.MethodDefinition.ImplementationDefinitionEnumerationDescription,
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>value - The value to be defined as a default value.public DynamicType.Builder.MethodDefinition<U> defaultValue(Object value, Class<?> type)
DynamicType.Builder.MethodDefinition.ImplementationDefinitiondefaultValue in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>value - The value to be defined as a default value.type - The type of the annotation property.Copyright © 2014–2016. All rights reserved.