Skip to content

xxDark/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.
    });
  }
}

Releases

No releases published

Packages

No packages published

Languages