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

kilim.analysis.ClassInfo 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 (c) 2006, Sriram Srinivasan
 *
 * You may distribute this software under the terms of the license 
 * specified in the file "License"
 */
package kilim.analysis;

public class ClassInfo {
    /**
     * fully qualified classname in a format suitable for Class.forName
     */
    public String className;

    /**
     * bytecode for the class
     */
    public byte[] bytes;

    public ClassInfo(String aClassName, byte[] aBytes) {
        className = aClassName.replace('/', '.');
        // className = aClassName.replace('.', '/');
        bytes = aBytes;
    }

    @Override
    public String toString() {
        return className;
    }

    @Override
    public int hashCode() {
        return className.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if ((obj instanceof ClassInfo) 
            && ((ClassInfo)obj).className.equals(this.className)) {
            return true;
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy