Interface ReflectionService
- All Known Implementing Classes:
ReflectionServiceImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
public interface ReflectionService
-
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 type) Handles primitive types.getEnumByString(Class<?> enumType, String name) getFieldByAnnotation(Class<?> object, 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<?> type) Class<?> getGenericType(Field exportableField) Class<?> getMethodByAnnotation(Class<?> object, 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)
-
Method Details
-
getClassForName
Handles primitive types.- Parameters:
type-- Throws:
ClassNotFoundException
-
isPrimitiveTypeName
-
isSimpleField
-
isSimpleType
-
isCollection
-
isCollection
-
getGenericType
-
getGenericType
-
getGenericType
-
convertStringToSimpleType
-
createCollection
-
getEnumByString
-
isList
-
isSet
-
getFieldByAnnotation
-
getFieldByAnnotation
-
getMethodByAnnotation
-
getMethodByAnnotation
-
getFieldsByAnnotation
-
getFieldByName
-
getFieldByName
-
getAnnotationRecursive
-
representsNull
-
getAllFields
-
getFieldValueNoSecurity
-
getMethod
-
isAbstract
-