|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.enhancer.ClassField
public class ClassField
Representation of a field that an enhanced class requires.
| Field Summary | |
|---|---|
protected int |
access
Access flags for the field (public, protected etc). |
protected ClassEnhancer |
enhancer
The parent enhancer. |
protected java.lang.String |
fieldName
Name of the field. |
protected java.lang.Object |
initialValue
Initial value for the field. |
protected static org.datanucleus.util.Localiser |
LOCALISER
Localisation of messages |
protected java.lang.Object |
type
Type for the field |
| Constructor Summary | |
|---|---|
ClassField(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object type)
Constructor |
|
ClassField(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object type,
java.lang.Object value)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
int |
getAccess()
Accessor for the access |
java.lang.Object |
getInitialValue()
Accessor for the value |
java.lang.String |
getName()
Accessor for the field name |
java.lang.Object |
getType()
Accessor for the type |
int |
hashCode()
Return hash code of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.datanucleus.util.Localiser LOCALISER
protected ClassEnhancer enhancer
protected java.lang.String fieldName
protected int access
protected java.lang.Object type
protected java.lang.Object initialValue
| Constructor Detail |
|---|
public ClassField(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object type)
enhancer - Class Enhancername - Name of the fieldaccess - Access for the field (PUBLIC, PROTECTED etc)type - Type of the field
public ClassField(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object type,
java.lang.Object value)
enhancer - Class Enhancername - Name of the fieldaccess - Access for the field (PUBLIC, PROTECTED etc)type - Type of the fieldvalue - Initial value| Method Detail |
|---|
public java.lang.String getName()
public int getAccess()
public java.lang.Object getType()
public java.lang.Object getInitialValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||