Mixin
Applies Mixin-style monkey patches to .java source or compiled .class files. Lightweight
Install / Use
/learn @MinimallyCorrect/MixinREADME
Mixin
<!---freshmark shields output = [ link(image('Release notes', 'https://img.shields.io/maven-metadata/v?label=changelog&metadataUrl=https%3A%2F%2Fjcenter.bintray.com%2F' + '{{group}}'.replaceAll("\\.", "%2F") + '%2F{{name}}%2Fmaven-metadata.xml'), '{{releaseNotesPath}}'), link(shield('Maven artifact', 'jcenter', '{{name}}', 'blue'), 'https://bintray.com/{{bintrayrepo}}/{{name}}/view'), link(image('License', 'https://img.shields.io/github/license/{{organisation}}/{{name}}.svg'), 'LICENSE') + ' ', link(image('Travis CI', 'https://travis-ci.org/{{organisation}}/{{name}}.svg'), 'https://travis-ci.org/{{organisation}}/{{name}}'), link(image('Coverage', 'https://img.shields.io/lgtm/alerts/g/{{organisation}}/{{name}}'), 'https://lgtm.com/projects/g/{{organisation}}/{{name}}'), link(image('Coverage', 'https://img.shields.io/codecov/c/github/{{organisation}}/{{name}}.svg'), 'https://codecov.io/gh/{{organisation}}/{{name}}/') + ' ', link(image('Discord chat', 'https://img.shields.io/discord/{{discordId}}?logo=discord'), '{{discordInvite}}'), ].join('\n'); --> <!---freshmark /shields -->A lightweight java Mixin-style patching implementation.
Reimplementation of the Mixin patcher used in 1.4.7 TickThreading builds.. Now with 100% less regex-based Java parsing, thanks to Java Parser.
Mixin can be applied to source files or compiled bytecode, from source files or compiled bytecode.
Cross-applications (source to bytecode) / (bytecode to source) do not currently support all features fully due to limitations in JavaTransformer's CodeFragment feature.
