Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ObjectType.java

00001 package de.fub.bytecode.generic;
00002 
00003 /** 
00004  * Denotes reference such as java.lang.String.
00005  *
00006  * @version $Id: ObjectType.java,v 1.1.1.1 2002/01/24 03:44:04 pserver Exp $
00007  * @author  <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
00008  */
00009 public final class ObjectType extends ReferenceType {
00010   private String class_name; // Class name of type
00011 
00012   /**
00013    * @param class_name fully qualified class name, e.g. java.lang.String
00014    */ 
00015   public ObjectType(String class_name) {
00016     super(T_REFERENCE, "L" + class_name.replace('.', '/') + ";");
00017     this.class_name = class_name;
00018   }  
00019   public boolean equals(Object type) {
00020     return (type instanceof ObjectType)?
00021       ((ObjectType)type).class_name.equals(class_name) : false;
00022   }  
00023   /**
00024    * @return name of referenced class
00025    */
00026   public String getClassName() { return class_name; }  
00027 }

Generated at Thu Feb 7 06:50:51 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001