Package net.ME1312.Galaxi.Library
Class Access
java.lang.Object
net.ME1312.Galaxi.Library.Access
MethodHandle Access Class
This class provides a simpler interface for working with Java's MethodHandle API.
This is not a replacement for reflection as that's still faster for single requests. Cache these objects when making repeated or frequent requests.
This class provides a simpler interface for working with Java's MethodHandle API.
This is not a replacement for reflection as that's still faster for single requests. Cache these objects when making repeated or frequent requests.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Type Accessor Classstatic final class
Constructor Accessor Classstatic final class
Field Accessor Classstatic final class
Method Accessor Class -
Field Summary
Modifier and TypeFieldDescriptionstatic final Access
Access a resource that has been shared to all modules; a public resourcestatic final Access
Access a resource from the unnamed module; the same module as Galaxi
This short-hand will be removed the moment multi-module JPMS jarfiles become available to us -
Method Summary
Modifier and TypeMethodDescriptionstatic Access
module
(MethodHandles.Lookup module) Access a resource from a module that opens to youAccess a Class
-
Field Details
-
unnamed
Access a resource from the unnamed module; the same module as Galaxi
This short-hand will be removed the moment multi-module JPMS jarfiles become available to us
-
Method Details
-
module
Access a resource from a module that opens to you- Parameters:
module
- Module Lookup- Returns:
- Module Accessor
-
type
Access a Class- Parameters:
clazz
- Class- Returns:
- Class Accessor
-