proguard.classfile.visitor.SignatureAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proguard-core Show documentation
Show all versions of proguard-core Show documentation
ProGuardCORE is a free library to read, analyze, modify, and write Java class files.
package proguard.classfile.visitor;
import java.util.function.Consumer;
import proguard.classfile.Clazz;
import proguard.classfile.Member;
import proguard.classfile.Signature;
/** This {@link MemberVisitor} provides the consumer with a corresponding {@link Signature}. */
public class SignatureAdapter implements MemberVisitor {
private final Consumer consumer;
public SignatureAdapter(Consumer consumer) {
this.consumer = consumer;
}
@Override
public void visitAnyMember(Clazz clazz, Member member) {
this.consumer.accept((T) Signature.of(clazz, member));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy