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

proguard.classfile.visitor.SignatureAdapter Maven / Gradle / Ivy

Go to download

ProGuardCORE is a free library to read, analyze, modify, and write Java class files.

There is a newer version: 9.1.6
Show newest version
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