public abstract <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive);
public abstract <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive);
public abstract <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive);
public abstract <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive);
public abstract <T extends Annotation> T getAnnotation(Class<T> annotationClass, boolean recursive);
public SpecialValueFactory<?> getValueFactory(Property property) { Type propertyType = property.getType(); Class<?> type = TypeUtil.classOfType(propertyType); if (!Externalizable.class.isAssignableFrom(type)) { if ((type.isArray() && type.getComponentType() != byte.class) || Collection.class.isAssignableFrom(type)) { if (property.isAnnotationPresent(AMFVectorInt.class)) return new AMFVectorIntValueFactory(property.getAnnotation(AMFVectorInt.class)); if (property.isAnnotationPresent(AMFVectorNumber.class)) return new AMFVectorNumberValueFactory(property.getAnnotation(AMFVectorNumber.class)); if (property.isAnnotationPresent(AMFVectorUint.class)) return new AMFVectorUintValueFactory(property.getAnnotation(AMFVectorUint.class)); if (property.isAnnotationPresent(AMFVectorObject.class)) { AMFVectorObject annotation = property.getAnnotation(AMFVectorObject.class); String vectorComponentType = annotation.type(); if (vectorComponentType == null || vectorComponentType.length() == 0) { Class<?> componentClass = TypeUtil.componentClassOfType(propertyType); vectorComponentType = vectorObjectAlias.aliasFor(componentClass); } return new AMFVectorObjectValueFactory(annotation, vectorComponentType); } } else if (Map.class.isAssignableFrom(type) && property.isAnnotationPresent(AMFDictionary.class)) { return new AMFDictionaryValueFactory(property.getAnnotation(AMFDictionary.class)); } } return null; }
public SpecialValueFactory<?> getValueFactory(Property property) { Type propertyType = property.getType(); Class<?> type = TypeUtil.classOfType(propertyType); if (!Externalizable.class.isAssignableFrom(type)) { if ((type.isArray() && type.getComponentType() != byte.class) || Collection.class.isAssignableFrom(type)) { if (property.isAnnotationPresent(AMFVectorInt.class)) return new AMFVectorIntValueFactory(property.getAnnotation(AMFVectorInt.class)); if (property.isAnnotationPresent(AMFVectorNumber.class)) return new AMFVectorNumberValueFactory(property.getAnnotation(AMFVectorNumber.class)); if (property.isAnnotationPresent(AMFVectorUint.class)) return new AMFVectorUintValueFactory(property.getAnnotation(AMFVectorUint.class)); if (property.isAnnotationPresent(AMFVectorObject.class)) { AMFVectorObject annotation = property.getAnnotation(AMFVectorObject.class); String vectorComponentType = annotation.type(); if (vectorComponentType == null || vectorComponentType.length() == 0) { Class<?> componentClass = TypeUtil.componentClassOfType(propertyType); vectorComponentType = vectorObjectAlias.aliasFor(componentClass); } return new AMFVectorObjectValueFactory(annotation, vectorComponentType); } } else if (Map.class.isAssignableFrom(type) && property.isAnnotationPresent(AMFDictionary.class)) { return new AMFDictionaryValueFactory(property.getAnnotation(AMFDictionary.class)); } } return null; }
public SpecialValueFactory<?> getValueFactory(Property property) { Type propertyType = property.getType(); Class<?> type = TypeUtil.classOfType(propertyType); if (!Externalizable.class.isAssignableFrom(type)) { if ((type.isArray() && type.getComponentType() != byte.class) || Collection.class.isAssignableFrom(type)) { if (property.isAnnotationPresent(AMFVectorInt.class)) return new AMFVectorIntValueFactory(property.getAnnotation(AMFVectorInt.class)); if (property.isAnnotationPresent(AMFVectorNumber.class)) return new AMFVectorNumberValueFactory(property.getAnnotation(AMFVectorNumber.class)); if (property.isAnnotationPresent(AMFVectorUint.class)) return new AMFVectorUintValueFactory(property.getAnnotation(AMFVectorUint.class)); if (property.isAnnotationPresent(AMFVectorObject.class)) { AMFVectorObject annotation = property.getAnnotation(AMFVectorObject.class); String vectorComponentType = annotation.type(); if (vectorComponentType == null || vectorComponentType.length() == 0) { Class<?> componentClass = TypeUtil.componentClassOfType(propertyType); vectorComponentType = vectorObjectAlias.aliasFor(componentClass); } return new AMFVectorObjectValueFactory(annotation, vectorComponentType); } } else if (Map.class.isAssignableFrom(type) && property.isAnnotationPresent(AMFDictionary.class)) { return new AMFDictionaryValueFactory(property.getAnnotation(AMFDictionary.class)); } } return null; }
Sort sort = field.getAnnotation(Sort.class); if (sort.type() == SortType.COMPARATOR) { try {