00001 package de.fub.bytecode.generic;
00002
00003 import de.fub.bytecode.Constants;
00004
00005
00006
00007
00008
00009
00010
00011 public final class ObjectType extends ReferenceType {
00012 private String class_name;
00013
00014
00015
00016
00017 public ObjectType(String class_name) {
00018 super(Constants.T_REFERENCE, "L" + class_name.replace('.', '/') + ";");
00019 this.class_name = class_name.replace('/', '.');
00020 }
00021
00022
00023 public boolean equals(Object type) {
00024 return (type instanceof ObjectType)?
00025 ((ObjectType)type).class_name.equals(class_name) : false;
00026 }
00027
00028
00029 public String getClassName() { return class_name; }
00030
00031
00032 public int hashCode() { return class_name.hashCode(); }
00033 }