Uses of Class
com.restfb.util.ReflectionUtils.FieldWithAnnotation
-
Uses of ReflectionUtils.FieldWithAnnotation in com.restfb
Modifier and TypeMethodDescriptionprotected String
DefaultJsonMapper.getFacebookFieldName
(ReflectionUtils.FieldWithAnnotation<Facebook> fieldWithAnnotation) For a Java field annotated with theFacebook
annotation, figure out what the corresponding Facebook JSON field name to map to it is.protected void
DefaultJsonMapper.logMultipleMappingFailedForField
(String facebookFieldName, ReflectionUtils.FieldWithAnnotation<Facebook> fieldWithAnnotation, String json) Dumps out a log message when one of a multiple-mapped Facebook field name JSON-to-Java mapping operation fails.protected Object
DefaultJsonMapper.toJavaType
(ReflectionUtils.FieldWithAnnotation<Facebook> fieldWithAnnotation, JsonObject jsonObject, String facebookFieldName) Extracts JSON data for a field according to itsFacebook
annotation and returns it converted to the proper Java type.Modifier and TypeMethodDescriptionDefaultJsonMapper.facebookFieldNamesWithMultipleMappings
(List<ReflectionUtils.FieldWithAnnotation<Facebook>> fieldsWithAnnotation) Finds any Facebook JSON fields that are mapped to more than 1 Java field. -
Uses of ReflectionUtils.FieldWithAnnotation in com.restfb.util
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
List<ReflectionUtils.FieldWithAnnotation<T>>ReflectionUtils.findFieldsWithAnnotation
(Class<?> type, Class<T> annotationType) Finds fields on the giventype
and all of its superclasses annotated with annotations of typeannotationType
.