All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.java.decompiler.api.passes.NamedPass Maven / Gradle / Ivy

Go to download

Modern Java & JVM language decompiler aiming to be as accurate as possible, with an emphasis on output quality.

The newest version!
package org.jetbrains.java.decompiler.api.passes;

public final class NamedPass implements Pass {
  private final String name;
  private final Pass pass;

  public NamedPass(String name, Pass pass) {
    this.name = name;
    this.pass = pass;
  }

  @Override
  public boolean run(PassContext ctx) {
    boolean res = this.pass.run(ctx);

    if (res) {
      ctx.getRec().add(this.name, ctx.getRoot());
    }

    return res;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy