protected class DynamicType.Builder.AbstractBase.DefaultExceptionDeclarableMethodInterception extends Object implements DynamicType.Builder.ExceptionDeclarableMethodInterception<S>
DynamicType.Builder.ExceptionDeclarableMethodInterception which allows the
definition of exceptions for a recently defined method.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
DynamicType.Builder.MethodAnnotationTarget<S> |
intercept(Implementation implementation)
Intercepts the currently selected methods with the provided implementation.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
intercept(Implementation implementation,
MethodTransformer methodTransformer)
Intercepts the currently selected method by a given implementation.
|
DynamicType.Builder.MatchedMethodInterception<S> |
throwing(Class<?>... exceptionType)
Defines a number of
Throwable types to be include in the exception declaration. |
DynamicType.Builder.MatchedMethodInterception<S> |
throwing(Collection<? extends TypeDescription> exceptionTypes)
Defines a number of
Throwable types to be include in the exception declaration. |
DynamicType.Builder.MatchedMethodInterception<S> |
throwing(Iterable<? extends Class<?>> exceptionTypes)
Defines a number of
Throwable types to be include in the exception declaration. |
DynamicType.Builder.MatchedMethodInterception<S> |
throwing(TypeDescription... exceptionType)
Defines a number of
Throwable types to be include in the exception declaration. |
String |
toString() |
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value,
Class<?> type)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value,
Class<?> type,
MethodTransformer methodTransformer)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value,
MethodTransformer methodTransformer)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withoutCode()
Implements the currently selected methods as
abstract methods. |
DynamicType.Builder.MethodAnnotationTarget<S> |
withoutCode(MethodTransformer methodTransformer)
Implements the currently selected methods as
abstract methods. |
public DynamicType.Builder.MatchedMethodInterception<S> throwing(Class<?>... exceptionType)
DynamicType.Builder.ExceptionDeclarableMethodInterceptionThrowable types to be include in the exception declaration.throwing in interface DynamicType.Builder.ExceptionDeclarableMethodInterception<S>exceptionType - The types that should be declared to be thrown by the selected method.public DynamicType.Builder.MatchedMethodInterception<S> throwing(Iterable<? extends Class<?>> exceptionTypes)
DynamicType.Builder.ExceptionDeclarableMethodInterceptionThrowable types to be include in the exception declaration.throwing in interface DynamicType.Builder.ExceptionDeclarableMethodInterception<S>exceptionTypes - The types that should be declared to be thrown by the selected method.public DynamicType.Builder.MatchedMethodInterception<S> throwing(TypeDescription... exceptionType)
DynamicType.Builder.ExceptionDeclarableMethodInterceptionThrowable types to be include in the exception declaration.throwing in interface DynamicType.Builder.ExceptionDeclarableMethodInterception<S>exceptionType - Descriptions of the types that should be declared to be thrown by the selected method.public DynamicType.Builder.MatchedMethodInterception<S> throwing(Collection<? extends TypeDescription> exceptionTypes)
DynamicType.Builder.ExceptionDeclarableMethodInterceptionThrowable types to be include in the exception declaration.throwing in interface DynamicType.Builder.ExceptionDeclarableMethodInterception<S>exceptionTypes - Descriptions of the types that should be declared to be thrown by the selected method.public DynamicType.Builder.MethodAnnotationTarget<S> intercept(Implementation implementation)
DynamicType.Builder.MatchedMethodInterceptionintercept in interface DynamicType.Builder.MatchedMethodInterception<S>implementation - The implementation to apply to the currently selected method.public DynamicType.Builder.MethodAnnotationTarget<S> intercept(Implementation implementation, MethodTransformer methodTransformer)
DynamicType.Builder.MatchedMethodInterceptionintercept in interface DynamicType.Builder.MatchedMethodInterception<S>implementation - An implementation to apply to the currently selected method.methodTransformer - The method transformer to apply.public DynamicType.Builder.MethodAnnotationTarget<S> withoutCode()
DynamicType.Builder.MatchedMethodInterceptionabstract methods.withoutCode in interface DynamicType.Builder.MatchedMethodInterception<S>abstract methods.public DynamicType.Builder.MethodAnnotationTarget<S> withoutCode(MethodTransformer methodTransformer)
DynamicType.Builder.MatchedMethodInterceptionabstract methods.withoutCode in interface DynamicType.Builder.MatchedMethodInterception<S>methodTransformer - The method transformer to apply.abstract methods.public DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value, Class<?> type)
DynamicType.Builder.MatchedMethodInterceptionwithDefaultValue in interface DynamicType.Builder.MatchedMethodInterception<S>value - The value that the annotation property should set as a default.type - The type of the annotation property.public DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value, Class<?> type, MethodTransformer methodTransformer)
DynamicType.Builder.MatchedMethodInterceptionwithDefaultValue in interface DynamicType.Builder.MatchedMethodInterception<S>value - The value that the annotation property should set as a default.type - The type of the annotation property.methodTransformer - The method transformer to apply.public DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value)
DynamicType.Builder.MatchedMethodInterceptionenum values should be handed as EnumerationDescription
instances, annotations as AnnotationDescription instances and
Class values as TypeDescription instances. Other values are handed in their actual form or as their wrapper types.withDefaultValue in interface DynamicType.Builder.MatchedMethodInterception<S>value - A non-loaded value that the annotation property should set as a default.public DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value, MethodTransformer methodTransformer)
DynamicType.Builder.MatchedMethodInterceptionenum values should be handed as EnumerationDescription
instances, annotations as AnnotationDescription instances and
Class values as TypeDescription instances. Other values are handed in their raw format or as their wrapper types.withDefaultValue in interface DynamicType.Builder.MatchedMethodInterception<S>value - A non-loaded value that the annotation property should set as a default.methodTransformer - The method transformer to apply.Copyright © 2014–2015. All rights reserved.