@NotStorableClass public class FieldInfo extends Object implements Comparable<FieldInfo>
Constructor and Description |
---|
FieldInfo(ClassInfo declaringClass,
String fieldName,
ClassInfo fieldType,
Boolean staticField,
Boolean transientField) |
FieldInfo(Field field,
ClassInfo declaringClass,
ClassInfo fieldType)
field info from field obtains by reflection
|
FieldInfo(FieldInfo fieldInfo)
copy constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FieldInfo other) |
boolean |
declaringClassDoesNotExist() |
boolean |
declaringClassExists() |
boolean |
equals(Object obj) |
boolean |
fieldtypeClassDoesNotExist() |
boolean |
fieldtypeClassExists() |
Class<?> |
getDeclaringClass() |
ClassInfo |
getDeclaringClassInfo() |
String |
getDeclaringClassName() |
Field |
getField() |
String |
getFieldName() |
Class<?> |
getFieldType() |
ClassInfo |
getFieldTypeInfo() |
String |
getFieldTypeName() |
Boolean |
getStaticField() |
Boolean |
getTransientField() |
int |
hashCode() |
boolean |
isArray() |
boolean |
isAssertNotNull() |
boolean |
isBasicOrPrimitiveType() |
boolean |
isBasicType() |
boolean |
isFieldDefined() |
boolean |
isPersisted() |
boolean |
isPrimitiveType() |
boolean |
isStaticField() |
boolean |
isTransientField() |
void |
setPersisted(boolean persisted) |
String |
toString() |
public static final FieldInfo NULL
public FieldInfo(Field field, ClassInfo declaringClass, ClassInfo fieldType) throws ClassInfoException
field
- declaringClass
- fieldType
- classInfoFactory
- ClassInfoException
public FieldInfo(ClassInfo declaringClass, String fieldName, ClassInfo fieldType, Boolean staticField, Boolean transientField) throws ClassInfoException
ClassInfoException
public FieldInfo(FieldInfo fieldInfo) throws ClassInfoException
fieldInfo
- ClassInfoException
public boolean isFieldDefined()
public Field getField()
public boolean isAssertNotNull()
public boolean declaringClassDoesNotExist()
public boolean declaringClassExists()
public String getDeclaringClassName()
public Class<?> getDeclaringClass()
public ClassInfo getDeclaringClassInfo()
public boolean fieldtypeClassDoesNotExist()
public boolean fieldtypeClassExists()
public Class<?> getFieldType() throws ClassInfoException
ClassInfoException
public String getFieldTypeName() throws ClassInfoException
ClassInfoException
public ClassInfo getFieldTypeInfo() throws ClassInfoException
ClassInfoException
public String getFieldName()
public boolean isPrimitiveType()
public boolean isBasicOrPrimitiveType() throws ClassInfoException
ClassInfoException
public boolean isBasicType()
public boolean isStaticField()
public Boolean getStaticField()
public boolean isTransientField()
public Boolean getTransientField()
public boolean isArray()
public boolean isPersisted()
public void setPersisted(boolean persisted)
public int compareTo(FieldInfo other)
compareTo
in interface Comparable<FieldInfo>
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.