Class ReflectionServiceImpl
java.lang.Object
net.datenwerke.rs.utils.reflection.ReflectionServiceImpl
- All Implemented Interfaces:
ReflectionService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertStringToSimpleType(String value, Class<?> type) Collection<?> createCollection(Class<?> type) getAllFields(Class<?> clazz) <A extends Annotation>
AgetAnnotationRecursive(Class<A> annotationClass, Class<?> type) Class<?> getClassForName(String typeName) Handles primitive types.getEnumByString(Class<?> enumType, String name) getFieldByAnnotation(Class<?> type, Class<? extends Annotation> annotation) getFieldByAnnotation(Object object, Class<? extends Annotation> annotation) getFieldByName(Class<?> type, String fieldName) getFieldByName(Object object, String fieldName) getFieldsByAnnotation(Class<?> type, Class<? extends Annotation> annotation) Class<?> getGenericType(Class<?> clazz) Class<?> getGenericType(Field exportableField) Class<?> getMethodByAnnotation(Class<?> type, Class<? extends Annotation> annotation) getMethodByAnnotation(Object object, Class<? extends Annotation> annotation) booleanisAbstract(Method method) booleanisCollection(Class<?> type) booleanisCollection(Field exportableField) booleanbooleanisPrimitiveTypeName(String typeName) booleanbooleanisSimpleField(Field exportableField) booleanisSimpleType(Class<?> type) booleanrepresentsNull(Class<?> type)
-
Field Details
-
primitiveTypeNames
-
-
Constructor Details
-
ReflectionServiceImpl
public ReflectionServiceImpl()
-
-
Method Details
-
isSimpleField
- Specified by:
isSimpleFieldin interfaceReflectionService
-
isSimpleType
- Specified by:
isSimpleTypein interfaceReflectionService
-
isCollection
- Specified by:
isCollectionin interfaceReflectionService
-
isCollection
- Specified by:
isCollectionin interfaceReflectionService
-
isList
- Specified by:
isListin interfaceReflectionService
-
isSet
- Specified by:
isSetin interfaceReflectionService
-
getGenericType
- Specified by:
getGenericTypein interfaceReflectionService
-
getGenericType
- Specified by:
getGenericTypein interfaceReflectionService
-
getGenericType
- Specified by:
getGenericTypein interfaceReflectionService
-
getClassForName
Description copied from interface:ReflectionServiceHandles primitive types.- Specified by:
getClassForNamein interfaceReflectionService- Parameters:
typeName-- Throws:
ClassNotFoundException
-
isPrimitiveTypeName
- Specified by:
isPrimitiveTypeNamein interfaceReflectionService
-
convertStringToSimpleType
- Specified by:
convertStringToSimpleTypein interfaceReflectionService
-
createCollection
- Specified by:
createCollectionin interfaceReflectionService
-
getEnumByString
- Specified by:
getEnumByStringin interfaceReflectionService
-
getFieldByAnnotation
- Specified by:
getFieldByAnnotationin interfaceReflectionService
-
getFieldByAnnotation
- Specified by:
getFieldByAnnotationin interfaceReflectionService
-
getMethodByAnnotation
- Specified by:
getMethodByAnnotationin interfaceReflectionService
-
getMethodByAnnotation
- Specified by:
getMethodByAnnotationin interfaceReflectionService
-
getAllFields
- Specified by:
getAllFieldsin interfaceReflectionService
-
getFieldsByAnnotation
- Specified by:
getFieldsByAnnotationin interfaceReflectionService
-
getFieldByName
- Specified by:
getFieldByNamein interfaceReflectionService
-
getFieldByName
- Specified by:
getFieldByNamein interfaceReflectionService
-
representsNull
- Specified by:
representsNullin interfaceReflectionService
-
getFieldValueNoSecurity
- Specified by:
getFieldValueNoSecurityin interfaceReflectionService
-
getAnnotationRecursive
- Specified by:
getAnnotationRecursivein interfaceReflectionService
-
getMethod
- Specified by:
getMethodin interfaceReflectionService
-
isAbstract
- Specified by:
isAbstractin interfaceReflectionService
-