public class DefaultMethod extends java.lang.Object implements EntityMethod
default methods.DefaultFunction| Constructor and Description |
|---|
DefaultMethod(java.lang.invoke.MethodHandle handle,
int argCount)
Creates a new default method.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getArgCount()
Gets the method argument count.
|
java.lang.invoke.MethodHandle |
getHandle()
Gets the method handle to invoke.
|
java.lang.Object |
invoke(java.lang.Object proxy,
Entity e,
java.lang.Object[] args)
This will invoke the desired functionality for this method using the proxy, entity and
supplied arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDependenciespublic DefaultMethod(java.lang.invoke.MethodHandle handle,
int argCount)
handle - Method handle to invoke.argCount - Method parameter count.public int getArgCount()
public java.lang.invoke.MethodHandle getHandle()
public java.lang.Object invoke(java.lang.Object proxy,
Entity e,
java.lang.Object[] args)
throws java.lang.Throwable
EntityMethodinvoke in interface EntityMethodproxy - Possible proxy of entity type.e - Entity this proxy is for.args - Supplied arguments to the original method.java.lang.Throwable - If the invocation caused an exception.