Package net.ME1312.Galaxi.Library
Class Access.Field
java.lang.Object
net.ME1312.Galaxi.Library.Access.Field
- Enclosing class:
- Access
Field Accessor Class
-
Method Summary
Modifier and TypeMethodDescriptionbind()
Finalize and cache the field getter<R> R
get()
Finalize, cache, select, and invoke the field getter<R> R
get
(Try.Function<MethodHandle, Object> invocation) Finalize, cache, select, and invoke the field gettergetter()
Finalize, cache, and select the field getterinstance()
Get the instance this field belongs toSwitch to instance field selection mode
If this method is not called, we remain in static field selection modename()
Get the name of this fieldsetter()
Finalize, cache, and select the field setterClass<?>
type()
Get the data type of this field
-
Method Details
-
name
Get the name of this field- Returns:
- Field Name
-
type
Get the data type of this field- Returns:
- Field Data Type
-
instance
Switch to instance field selection mode
If this method is not called, we remain in static field selection mode- Parameters:
instance
- Instance
-
instance
Get the instance this field belongs to- Returns:
- Instance
-
bind
Finalize and cache the field getter- Throws:
Throwable
- See Also:
-
Use setter() to do the same to the field setter
-
setter
Finalize, cache, and select the field setter- Returns:
- MethodHandle
- Throws:
Throwable
-
getter
Finalize, cache, and select the field getter- Returns:
- MethodHandle
- Throws:
Throwable
-
get
Finalize, cache, select, and invoke the field getter- Returns:
- Field Value
- Throws:
Throwable
-
get
Finalize, cache, select, and invoke the field getter- Parameters:
invocation
- Invocation Instruction- Returns:
- Field Value
- Throws:
Throwable
-