public static class DynConstructors.Ctor<C> extends DynMethods.UnboundMethod
Modifier and Type | Method and Description |
---|---|
DynMethods.BoundMethod |
bind(java.lang.Object receiver)
Returns this method as a BoundMethod for the given receiver.
|
java.lang.Class<? extends C> |
getConstructedClass() |
<R> R |
invoke(java.lang.Object target,
java.lang.Object... args) |
<R> R |
invokeChecked(java.lang.Object target,
java.lang.Object... args) |
boolean |
isStatic()
Returns whether the method is a static method.
|
C |
newInstance(java.lang.Object... args) |
C |
newInstanceChecked(java.lang.Object... args) |
java.lang.String |
toString() |
asStatic, isNoop
public java.lang.Class<? extends C> getConstructedClass()
public C newInstanceChecked(java.lang.Object... args) throws java.lang.Exception
java.lang.Exception
public C newInstance(java.lang.Object... args)
public <R> R invoke(java.lang.Object target, java.lang.Object... args)
invoke
in class DynMethods.UnboundMethod
public <R> R invokeChecked(java.lang.Object target, java.lang.Object... args) throws java.lang.Exception
invokeChecked
in class DynMethods.UnboundMethod
java.lang.Exception
public DynMethods.BoundMethod bind(java.lang.Object receiver)
DynMethods.UnboundMethod
bind
in class DynMethods.UnboundMethod
receiver
- an Object to receive the method invocationDynMethods.BoundMethod
for this method and the receiverpublic boolean isStatic()
DynMethods.UnboundMethod
isStatic
in class DynMethods.UnboundMethod
public java.lang.String toString()
toString
in class DynMethods.UnboundMethod