Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

jmisur/mixins4j

Repository files navigation

mixins4j

Enhancing java with mixins. You can write code such as:

@Mixin(superclass = Animal.class, delegates = {Duck.class, Dog.class})
public class Mutant extends AnimalMixin {

  public static void main(String[] args) {
    Mutant mutant = new Mutant();
    mutant.bark();
    mutant.quack();
    mutant.run();
  }
}

Class Mutant will inherit all inheritable methods from Animal, Duck and Dog. Class AnimalMixin will be generated by java processor and will extend class Animal.

Inspired by javadude annotations

Installation

Import project to eclipse and export as jar. Import jar into mixins4jtests and set up as java preprocessor.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published