Skip to content

func-solutions/asm-inline

 
 

Repository files navigation

asm-inline

At first I thought: Oh, I can make an optimization transformer for Proguard
And then this happened.
Example:

public class Test {

  public static void main(String[] args) {
    AsmBlock.inline(b -> {
      b.getstatic(System.class, "out", PrintStream.class)
          .ldc("Hello, World!")
          .invokevirtual(PrintStream.class, "println",
              MethodType.methodType(Void.TYPE, String.class));
      // Note that RETURN will be added by javac.
    });
  }
}

About

Inline raw ASM instructions in Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.3%
  • Groovy 1.7%