org.sourceforge.jemm.database
Class ClassInfo

java.lang.Object
  extended by org.sourceforge.jemm.database.ClassInfo
All Implemented Interfaces:
java.io.Serializable

public class ClassInfo
extends java.lang.Object
implements java.io.Serializable

Immutable class representing a class.

Author:
Rory Graves, Paul Keeble
See Also:
Serialized Form

Field Summary
 java.lang.String className
          The formal classname of the class.
 java.util.Set<FieldInfo> fields
          An immutable set of the fields belonging to the class
 boolean isType
          Whether the given class type is a jemm type
 
Constructor Summary
ClassInfo(java.lang.Class<? extends JEMMType> classType)
          Create a ClassInfo for the given class.
ClassInfo(java.lang.String className)
          Create a ClassInfo with the given class name and no fields defined.
ClassInfo(java.lang.String className, FieldInfo... fields)
          Create a ClassInfo with the given class name and fields.
ClassInfo(java.lang.String className, java.util.Set<FieldInfo> fields)
          Create a class ClassInfo for the given class.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

className

public final java.lang.String className
The formal classname of the class.


isType

public final boolean isType
Whether the given class type is a jemm type


fields

public final java.util.Set<FieldInfo> fields
An immutable set of the fields belonging to the class

Constructor Detail

ClassInfo

public ClassInfo(java.lang.String className,
                 java.util.Set<FieldInfo> fields)
Create a class ClassInfo for the given class.

Parameters:
className - The name of the class.
fields - The field definitions for this class.

ClassInfo

public ClassInfo(java.lang.String className)
Create a ClassInfo with the given class name and no fields defined.

Parameters:
className - The name of the class.

ClassInfo

public ClassInfo(java.lang.String className,
                 FieldInfo... fields)
Create a ClassInfo with the given class name and fields.

Parameters:
className - The name of the class.
fields - The fields of the class.

ClassInfo

public ClassInfo(java.lang.Class<? extends JEMMType> classType)
Create a ClassInfo for the given class.

Parameters:
classType - The Class instance of the represented class.
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.