tutorial:mixin_injects
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:mixin_injects [2025/12/08 17:43] – Edit example where WrapOp is preferrable to have it capture an expression rather than just a local, suggested by EarthComputer gauntrecluse | tutorial:mixin_injects [2026/01/01 13:03] (current) – Remove now generally unnecessary warning header, fix monospaced consistency on MExtras injector refs gauntrecluse | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | FIXME //This page is due rewrites because of inaccuracies. This page may change very suddenly and should be taken with a grain of salt.// | ||
| - | |||
| ====== @Inject ====== | ====== @Inject ====== | ||
| Line 23: | Line 21: | ||
| === Cancelling, Modifying or Diverting individual operations === | === Cancelling, Modifying or Diverting individual operations === | ||
| - | It is important to not use '' | + | It is important to not use '' |
| === Context-Sensitive Injections === | === Context-Sensitive Injections === | ||
| Line 39: | Line 37: | ||
| } | } | ||
| </ | </ | ||
| - | if we wished to inject right after the '' | + | if we wished to inject right after the '' |
| For the sake of showing how to appropriately add our new operations after the original method call outside of void returns, we'll say '' | For the sake of showing how to appropriately add our new operations after the original method call outside of void returns, we'll say '' | ||
| <code java> | <code java> | ||
| Line 134: | Line 132: | ||
| The only common form of shifting comes in the form of using '' | The only common form of shifting comes in the form of using '' | ||
| <code java> | <code java> | ||
| - | @Inject(method = " | + | @Inject(method = " |
| </ | </ | ||
tutorial/mixin_injects.1765215823.txt.gz · Last modified: 2025/12/08 17:43 by gauntrecluse