|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.jemm.database.FieldInfo
public class FieldInfo
A fieldInfo represents all the information to do with a Field in a Java class. The name, its type for storage purposes and the class which originally declared the field. The class is stored to counter the potential problems shown by the following where both X should be stored twice by JEMM: public class A { private int X; } public class B extends A { private int X; }
ClassInfo
,
Serialized FormField Summary | |
---|---|
java.lang.String |
className
The declaring class of the field |
java.lang.String |
fieldName
The name of the field |
FieldType |
fieldType
The type of the field |
Constructor Summary | |
---|---|
FieldInfo(java.lang.String fieldName,
java.lang.Class<?> classType,
FieldType fieldType)
Creats a FieldInfo to represent the given class field. |
|
FieldInfo(java.lang.String fieldName,
java.lang.String className,
FieldType fieldType)
Create a FieldInfo to represent the given class field. |
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 |
---|
public final java.lang.String fieldName
public final FieldType fieldType
public final java.lang.String className
Constructor Detail |
---|
public FieldInfo(java.lang.String fieldName, java.lang.String className, FieldType fieldType)
fieldName
- The name of the field.className
- The declaring class of the field.fieldType
- The type of the field.public FieldInfo(java.lang.String fieldName, java.lang.Class<?> classType, FieldType fieldType)
fieldName
- The name of the field.classType
- The declaring class typefieldType
- The type of the field.Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |