Package org.datanucleus.enhancer
Class ClassField
java.lang.Object
org.datanucleus.enhancer.ClassField
Representation of a field that an enhanced class requires.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Access flags for the field (public, protected etc).protected ClassEnhancer
The parent enhancer.protected String
Name of the field.protected Object
Initial value for the field.protected Object
Type for the field -
Constructor Summary
ConstructorsConstructorDescriptionClassField
(ClassEnhancer enhancer, String name, int access, Object type) ConstructorClassField
(ClassEnhancer enhancer, String name, int access, Object type, Object value) Constructor -
Method Summary
-
Field Details
-
enhancer
The parent enhancer. -
fieldName
Name of the field. -
access
protected int accessAccess flags for the field (public, protected etc). -
type
Type for the field -
initialValue
Initial value for the field.
-
-
Constructor Details
-
ClassField
Constructor- Parameters:
enhancer
- Class Enhancername
- Name of the fieldaccess
- Access for the field (PUBLIC, PROTECTED etc)type
- Type of the field
-
ClassField
Constructor- Parameters:
enhancer
- Class Enhancername
- Name of the fieldaccess
- Access for the field (PUBLIC, PROTECTED etc)type
- Type of the fieldvalue
- Initial value
-
-
Method Details
-
getName
Accessor for the field name- Returns:
- Name of the field
-
getAccess
public int getAccess()Accessor for the access- Returns:
- Access type for the field
-
getType
Accessor for the type- Returns:
- Type of the field
-
getInitialValue
Accessor for the value- Returns:
- Initial value of the field
-
hashCode
public int hashCode()Return hash code of this instance. -
equals
Indicates whether some other object is "equal to" this one.
-