|
||||||||||
| 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 String |
fieldName
Name of the field. |
protected Object |
initialValue
Initial value for the field. |
protected static org.datanucleus.util.Localiser |
LOCALISER
Localisation of messages |
protected Object |
type
Type for the field |
| Constructor Summary | |
|---|---|
ClassField(ClassEnhancer enhancer,
String name,
int access,
Object type)
Constructor |
|
ClassField(ClassEnhancer enhancer,
String name,
int access,
Object type,
Object value)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
int |
getAccess()
Accessor for the access |
Object |
getInitialValue()
Accessor for the value |
String |
getName()
Accessor for the field name |
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 String fieldName
protected int access
protected Object type
protected Object initialValue
| Constructor Detail |
|---|
public ClassField(ClassEnhancer enhancer,
String name,
int access,
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,
String name,
int access,
Object type,
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 String getName()
public int getAccess()
public Object getType()
public Object getInitialValue()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||