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

kilim.analysis.ClassWriter Maven / Gradle / Ivy

Go to download

Coroutines, continuations, fibers, actors and message passing for the JVM

There is a newer version: 2.0.2-jdk7
Show newest version
// 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";
		}
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy