kilim.analysis.ClassWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kilim Show documentation
Show all versions of kilim Show documentation
Coroutines, continuations, fibers, actors and message passing for the JVM
// Copyright 2013 by Jason Pell - offered under the terms of the MIT License
package kilim.analysis;
import kilim.mirrors.Detector;
public class ClassWriter extends org.objectweb.asm.ClassWriter {
private final Detector detector;
public ClassWriter(final int flags, final Detector detector) {
super(flags);
this.detector = detector;
}
protected String getCommonSuperClass(final String type1, final String type2) {
try {
return detector.commonSuperType(type1, type2);
} catch (kilim.mirrors.ClassMirrorNotFoundException e) {
return "java/lang/Object";
}
}
}