public static class DynMethods.UnboundMethod extends Object
Method.
Allows callers to invoke the wrapped method with all Exceptions wrapped by
RuntimeException, or with a single Exception catch block.| Modifier and Type | Method and Description |
|---|---|
DynMethods.StaticMethod |
asStatic()
Returns this method as a StaticMethod.
|
DynMethods.BoundMethod |
bind(Object receiver)
Returns this method as a BoundMethod for the given receiver.
|
<R> R |
invoke(Object target,
Object... args) |
<R> R |
invokeChecked(Object target,
Object... args) |
boolean |
isNoop() |
boolean |
isStatic() |
String |
toString() |
public <R> R invokeChecked(Object target, Object... args) throws Exception
Exceptionpublic DynMethods.BoundMethod bind(Object receiver)
receiver - an Object to receive the method invocationDynMethods.BoundMethod for this method and the receiverIllegalStateException - if the method is staticIllegalArgumentException - if the receiver's class is incompatiblepublic boolean isStatic()
public boolean isNoop()
public DynMethods.StaticMethod asStatic()
DynMethods.StaticMethod for this methodIllegalStateException - if the method is not staticCopyright © 2018 The Apache Software Foundation. All rights reserved.