Package org.brijframework.util.reflect
Class FieldUtil
- java.lang.Object
-
- org.brijframework.util.reflect.FieldUtil
-
public abstract class FieldUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Stringfield_getName
-
Constructor Summary
Constructors Constructor Description FieldUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Field>getAllField(Class<?> _class)Get all public fields current classstatic List<Field>getAllField(Class<?> _class, ReflectionAccess _accessLevel)get all fields current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultstatic Map<String,Field>getAllFieldMap(Class<?> _class, ReflectionAccess _accessLevel)static List<Field>getAllManyRelField(Class<?> _class)static List<Field>getAllManyRelField(Class<?> _class, ReflectionAccess accessLevel)static List<Field>getAllOneRelField(Class<?> _class, ReflectionAccess accessLevel)static List<Field>getAllPrimativeField(Class<?> _class)static List<Field>getAllPrimativeField(Class<?> _class, ReflectionAccess accessLevel)static List<Field>getAllRelField(Class<?> _class)static List<Field>getAllRelField(Class<?> _class, ReflectionAccess accessLevel)static FieldgetField(Class<?> _class, String _field)get public field current classstatic FieldgetField(Class<?> _class, String _field, ReflectionAccess _accessLevel)Get field current class with following condition :
PRIVATE can access protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultstatic List<String>getFieldList(Class<?> _class)get all names of fields current classstatic List<String>getFieldList(Class<?> _class, ReflectionAccess _accessLevel)Get all names field current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultstatic booleanisRelField(Field _field)
-
-
-
Field Detail
-
field_getName
public static final String field_getName
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllField
public static List<Field> getAllField(Class<?> _class)
Get all public fields current class- Parameters:
_class-- Returns:
- list of field
-
getField
public static Field getField(Class<?> _class, String _field)
get public field current class- Parameters:
_class-_field-- Returns:
- Field
-
getFieldList
public static List<String> getFieldList(Class<?> _class)
get all names of fields current class- Parameters:
_class-- Returns:
- List of String
-
getFieldList
public static List<String> getFieldList(Class<?> _class, ReflectionAccess _accessLevel)
Get all names field current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class-_accessLevel-- Returns:
- List of String
-
getField
public static Field getField(Class<?> _class, String _field, ReflectionAccess _accessLevel)
Get field current class with following condition :
PRIVATE can access protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class-_field-_accessLevel-- Returns:
- Field
-
getAllFieldMap
public static Map<String,Field> getAllFieldMap(Class<?> _class, ReflectionAccess _accessLevel)
-
getAllField
public static List<Field> getAllField(Class<?> _class, ReflectionAccess _accessLevel)
get all fields current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class-_accessLevel-- Returns:
- List of Field
-
getAllManyRelField
public static List<Field> getAllManyRelField(Class<?> _class, ReflectionAccess accessLevel)
-
getAllOneRelField
public static List<Field> getAllOneRelField(Class<?> _class, ReflectionAccess accessLevel)
-
getAllPrimativeField
public static List<Field> getAllPrimativeField(Class<?> _class, ReflectionAccess accessLevel)
-
getAllRelField
public static List<Field> getAllRelField(Class<?> _class, ReflectionAccess accessLevel)
-
isRelField
public static boolean isRelField(Field _field)
-
-