Skip to content

Containers

Tom Martin edited this page Jul 9, 2025 · 1 revision

Valid container types are interfaces or classes annotated with @TypeRedirect, @InterOwnerContainer, or @IntraOwnerContainer within a redirect set

Containers may contain any number of method redirects, field redirects, field to method redirects, constructor to factory redirects.

Containers provide their inner redirects with information about which types they apply to.

This table shows when each container is useful:

Kind of redirect TypeRedirect InterOwnerContainer IntraOwnerContainer
non-static->non-static member on the same class
static->static member on the same class
non-static->static member on the same class
non-static->non-static member on a different class
static->static member on different class
non-static->static member on a different class

Clone this wiki locally