proguard.evaluation.exception.PartialEvaluatorException 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.evaluation.exception;
import proguard.classfile.Clazz;
import proguard.classfile.Method;
import proguard.classfile.visitor.ClassVisitor;
import proguard.classfile.visitor.MemberVisitor;
import proguard.exception.ProguardCoreException;
public class PartialEvaluatorException extends ProguardCoreException {
private final Clazz clazz;
private final Method method;
public PartialEvaluatorException(
int componentErrorId,
Throwable cause,
Clazz clazz,
Method method,
String message,
String... errorParameters) {
super(componentErrorId, cause, message, errorParameters);
this.clazz = clazz;
this.method = method;
}
public Clazz getClazz() {
return clazz;
}
public Method getMethod() {
return method;
}
public void classAccept(ClassVisitor visitor) {
if (clazz != null) {
clazz.accept(visitor);
}
}
public void methodAccept(MemberVisitor visitor) {
if (clazz != null && method != null) {
method.accept(clazz, visitor);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy