kilim.analysis.ClassInfo 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 (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;
}
}