org.jetbrains.java.decompiler.api.passes.NamedPass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quiltflower Show documentation
Show all versions of quiltflower Show documentation
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