Package org.apache.iceberg.common
Class DynMethods.UnboundMethod
- java.lang.Object
- 
- org.apache.iceberg.common.DynMethods.UnboundMethod
 
- 
- Direct Known Subclasses:
- DynConstructors.Ctor
 - Enclosing class:
- DynMethods
 
 public static class DynMethods.UnboundMethod extends java.lang.ObjectConvenience wrapper class aroundMethod. Allows callers to invoke the wrapped method with all Exceptions wrapped by RuntimeException, or with a single Exception catch block.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DynMethods.StaticMethodasStatic()Returns this method as a StaticMethod.DynMethods.BoundMethodbind(java.lang.Object receiver)Returns this method as a BoundMethod for the given receiver.<R> Rinvoke(java.lang.Object target, java.lang.Object... args)<R> RinvokeChecked(java.lang.Object target, java.lang.Object... args)booleanisNoop()Returns whether the method is a noop.booleanisStatic()Returns whether the method is a static method.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
invokeCheckedpublic <R> R invokeChecked(java.lang.Object target, java.lang.Object... args) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
invokepublic <R> R invoke(java.lang.Object target, java.lang.Object... args)
 - 
bindpublic DynMethods.BoundMethod bind(java.lang.Object receiver) Returns this method as a BoundMethod for the given receiver.- Parameters:
- receiver- an Object to receive the method invocation
- Returns:
- a DynMethods.BoundMethodfor this method and the receiver
- Throws:
- java.lang.IllegalStateException- if the method is static
- java.lang.IllegalArgumentException- if the receiver's class is incompatible
 
 - 
isStaticpublic boolean isStatic() Returns whether the method is a static method.
 - 
isNooppublic boolean isNoop() Returns whether the method is a noop.
 - 
asStaticpublic DynMethods.StaticMethod asStatic() Returns this method as a StaticMethod.- Returns:
- a DynMethods.StaticMethodfor this method
- Throws:
- java.lang.IllegalStateException- if the method is not static
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-