Package net.ME1312.Galaxi.Library
Class Access.Method
java.lang.Object
net.ME1312.Galaxi.Library.Access.Method
- Enclosing class:
- Access
Method Accessor Class
-
Method Summary
Modifier and TypeMethodDescriptionbind()
Finalize and cache the methodclone()
Create an editable clone of this accessorhandle()
Finalize, cache, and select the methodinstance()
Get the instance this method will run underSwitch to instance method selection mode
If this method is not called, we remain in static method selection mode<R> R
invoke()
Finalize, cache, select, and invoke the method (with zero arguments)<R> R
invoke
(Try.Function<MethodHandle, Object> invocation) Finalize, cache, select, and invoke the methodname()
Get the name of this methodClass<?>[]
Get the parameter types of this methodparameters
(Class<?>... types) Define the parameters of this method
If this method is not called, it is assumed that there are no parametersClass<?>
returns()
Get the return type of this methodDefine the return type of this method
If this method is not called, the return type is assumed to be void
-
Method Details
-
clone
Create an editable clone of this accessor- Returns:
- Cloned Method Accessor
-
name
Get the name of this method- Returns:
- Method Name
-
returns
Define the return type of this method
If this method is not called, the return type is assumed to be void- Parameters:
type
- Return Type
-
returns
Get the return type of this method- Returns:
- Return Type
-
parameters
Define the parameters of this method
If this method is not called, it is assumed that there are no parameters- Parameters:
types
- Parameter Types
-
parameters
Get the parameter types of this method- Returns:
- Parameter Types
-
instance
Switch to instance method selection mode
If this method is not called, we remain in static method selection mode- Parameters:
instance
- Instance
-
instance
Get the instance this method will run under- Returns:
- Instance
-
bind
Finalize and cache the method- Throws:
Throwable
-
handle
Finalize, cache, and select the method- Returns:
- MethodHandle
- Throws:
Throwable
-
invoke
Finalize, cache, select, and invoke the method (with zero arguments)- Returns:
- Method Return Value
- Throws:
Throwable
-
invoke
Finalize, cache, select, and invoke the method- Parameters:
invocation
- Invocation Instruction- Returns:
- Method Return Value
- Throws:
Throwable
-