public abstract class AbstractClassAccess<C> extends Object implements ClassAccess<C>
Modifier and Type | Field and Description |
---|---|
protected String[] |
fieldNames
An ordered array giving the names of the fields in the class to accessed
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractClassAccess(Class<C> clazz)
Constructor, intended for use by generated subclasses
|
Modifier and Type | Method and Description |
---|---|
protected abstract <X> ClassAccess<X> |
constructClassAccess(Class<X> clazz) |
protected abstract FieldAccess<C> |
constructFieldAccess(Field field) |
protected abstract MethodAccess<C> |
constructMethodAccess(Method method) |
ClassModel<C> |
getClassModel()
Return the ClassModel used by this ClassAccess instance
|
FieldAccess<C> |
getDeclaredFieldAccess(Field f)
Get a field accessor for the given field
|
FieldAccess<C>[] |
getDeclaredFieldAccessors()
Gets a field accessor for each field in the class
|
protected String[] |
getDeclaredFieldNames() |
protected Field[] |
getDeclaredFields() |
MethodAccess<C> |
getDeclaredMethodAccess(Method m)
Get a method accessor for the given method
|
MethodAccess<C>[] |
getDeclaredMethodAccessors()
Gets a method accessor for each method in the class
|
protected String[] |
getDeclaredMethodNames() |
protected Method[] |
getDeclaredMethods() |
ClassAccess<? super C> |
getSuperClassAccess()
Get the Class being accessed
|
Class<C> |
getType()
Get the Class being accessed
|
boolean |
providesEquals()
True if the equals method is overridden by this class
|
boolean |
providesHashCode()
True if the hashCode method is overridden by this class
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
protected final String[] fieldNames
protected AbstractClassAccess(Class<C> clazz)
clazz
- The Class to be accessedpublic Class<C> getType()
ClassAccess
getType
in interface ClassAccess<C>
public FieldAccess<C>[] getDeclaredFieldAccessors()
ClassAccess
getDeclaredFieldAccessors
in interface ClassAccess<C>
public FieldAccess<C> getDeclaredFieldAccess(Field f)
ClassAccess
getDeclaredFieldAccess
in interface ClassAccess<C>
f
- The Field to be accessedpublic MethodAccess<C>[] getDeclaredMethodAccessors()
ClassAccess
getDeclaredMethodAccessors
in interface ClassAccess<C>
public MethodAccess<C> getDeclaredMethodAccess(Method m)
ClassAccess
getDeclaredMethodAccess
in interface ClassAccess<C>
m
- The Method to be accessedpublic ClassModel<C> getClassModel()
ClassAccess
getClassModel
in interface ClassAccess<C>
protected String[] getDeclaredFieldNames()
protected Field[] getDeclaredFields()
protected String[] getDeclaredMethodNames()
protected Method[] getDeclaredMethods()
public ClassAccess<? super C> getSuperClassAccess()
ClassAccess
getSuperClassAccess
in interface ClassAccess<C>
public boolean providesHashCode()
ClassAccess
providesHashCode
in interface ClassAccess<C>
public boolean providesEquals()
ClassAccess
providesEquals
in interface ClassAccess<C>
protected abstract FieldAccess<C> constructFieldAccess(Field field)
protected abstract MethodAccess<C> constructMethodAccess(Method method)
protected abstract <X> ClassAccess<X> constructClassAccess(Class<X> clazz)
Copyright © 2010–2018 Jadira Systems. All rights reserved.