Skip to content

Modules Core

Benjamin K edited this page Nov 3, 2021 · 2 revisions

The core module for Compound, this module must be included in your project for any other Compound module to function properly.

Core provides small utility methods and data structures that are common across more than one Compound module.

At the time of writing the main feature of the core module is to assist with reflection, providing two classes that allow you to reference private fields or methods on an existing class. Instead of storing references to the Field or Method using Java's reflection API you instead create an instance of Compound's WrappedField or WrappedMethod. You can find a member by providing its name and optionally any aliases that it may fall under during runtime.

Clone this wiki locally