public class ClassField extends Object
| Modifier and Type | Field and Description |
|---|---|
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 Object |
type
Type for the field
|
| Constructor and Description |
|---|
ClassField(ClassEnhancer enhancer,
String name,
int access,
Object type)
Constructor
|
ClassField(ClassEnhancer enhancer,
String name,
int access,
Object type,
Object value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected ClassEnhancer enhancer
protected String fieldName
protected int access
protected Object type
protected Object initialValue
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 fieldpublic 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 valuepublic String getName()
public int getAccess()
public Object getType()
public Object getInitialValue()
public int hashCode()
Copyright © 2017. All rights reserved.