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(Instrumentation instrumentation)
Intercepts the currently selected method by a given instrumentation.
|
DynamicType.Builder.MatchedMethodInterception<S> |
throwing(Class<?>... type)
Defines a number of
Throwable types to be include in the exception declaration. |
DynamicType.Builder.MatchedMethodInterception<S> |
throwing(TypeDescription... type)
Defines a number of
Throwable types to be include in the exception declaration. |
String |
toString() |
DynamicType.Builder.MethodAnnotationTarget<S> |
withoutCode()
Implements the currently selected methods as
abstract methods. |
public DynamicType.Builder.MatchedMethodInterception<S> throwing(Class<?>... type)
DynamicType.Builder.ExceptionDeclarableMethodInterceptionThrowable types to be include in the exception declaration.throwing in interface DynamicType.Builder.ExceptionDeclarableMethodInterception<S>type - The types that should be declared to be thrown by the selected method.public DynamicType.Builder.MatchedMethodInterception<S> throwing(TypeDescription... type)
DynamicType.Builder.ExceptionDeclarableMethodInterceptionThrowable types to be include in the exception declaration.throwing in interface DynamicType.Builder.ExceptionDeclarableMethodInterception<S>type - Descriptions of the types that should be declared to be thrown by the selected method.public DynamicType.Builder.MethodAnnotationTarget<S> intercept(Instrumentation instrumentation)
DynamicType.Builder.MatchedMethodInterceptionintercept in interface DynamicType.Builder.MatchedMethodInterception<S>instrumentation - An instrumentation to apply to the currently selected method.public DynamicType.Builder.MethodAnnotationTarget<S> withoutCode()
DynamicType.Builder.MatchedMethodInterceptionabstract methods.withoutCode in interface DynamicType.Builder.MatchedMethodInterception<S>abstract methods.Copyright © 2014–2015. All rights reserved.