public static class DynMethods.UnboundMethod
extends java.lang.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(java.lang.Object receiver)
Returns this method as a BoundMethod for the given receiver.
|
<R> R |
invoke(java.lang.Object target,
java.lang.Object... args) |
<R> R |
invokeChecked(java.lang.Object target,
java.lang.Object... args) |
boolean |
isNoop()
Returns whether the method is a noop.
|
boolean |
isStatic()
Returns whether the method is a static method.
|
java.lang.String |
toString() |
public <R> R invokeChecked(java.lang.Object target,
java.lang.Object... args)
throws java.lang.Exception
java.lang.Exceptionpublic <R> R invoke(java.lang.Object target,
java.lang.Object... args)
public DynMethods.BoundMethod bind(java.lang.Object receiver)
receiver - an Object to receive the method invocationDynMethods.BoundMethod for this method and the receiverjava.lang.IllegalStateException - if the method is staticjava.lang.IllegalArgumentException - if the receiver's class is incompatiblepublic boolean isStatic()
public boolean isNoop()
public DynMethods.StaticMethod asStatic()
DynMethods.StaticMethod for this methodjava.lang.IllegalStateException - if the method is not staticpublic java.lang.String toString()
toString in class java.lang.Object