.getActualTypeArguments(); final Type typeArgument = actualTypeArguments[isMap ? 1 : 0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);
private void processImplicitAnnotation(final Field field) { final XStreamImplicit implicitAnnotation = field.getAnnotation(XStreamImplicit.class); if (implicitAnnotation != null) { if (implicitCollectionMapper == null) { throw new InitializationException("No " + ImplicitCollectionMapper.class.getName() + " available"); } final String fieldName = field.getName(); final String itemFieldName = implicitAnnotation.itemFieldName(); Class itemType = null; final Type genericType = field.getGenericType(); if (genericType instanceof ParameterizedType) { final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument); } if (itemFieldName != null && !"".equals(itemFieldName)) { implicitCollectionMapper.add( field.getDeclaringClass(), fieldName, itemFieldName, itemType); } else { implicitCollectionMapper.add(field.getDeclaringClass(), fieldName, itemType); } } }
private void processImplicitAnnotation(final Field field) { final XStreamImplicit implicitAnnotation = field.getAnnotation(XStreamImplicit.class); if (implicitAnnotation != null) { if (implicitCollectionMapper == null) { throw new InitializationException("No " + ImplicitCollectionMapper.class.getName() + " available"); } final String fieldName = field.getName(); final String itemFieldName = implicitAnnotation.itemFieldName(); Class itemType = null; final Type genericType = field.getGenericType(); if (genericType instanceof ParameterizedType) { final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument); } if (itemFieldName != null && !"".equals(itemFieldName)) { implicitCollectionMapper.add( field.getDeclaringClass(), fieldName, itemFieldName, itemType); } else { implicitCollectionMapper.add(field.getDeclaringClass(), fieldName, itemType); } } }
final Type[] actualTypeArguments = ((ParameterizedType)genericType).getActualTypeArguments(); final Type typeArgument = actualTypeArguments[isMap ? 1 : 0]; itemType = getClass(typeArgument);
.getActualTypeArguments(); final Type typeArgument = actualTypeArguments[isMap ? 1 : 0]; itemType = getClass(typeArgument);
.getActualTypeArguments(); final Type typeArgument = actualTypeArguments[isMap ? 1 : 0]; itemType = getClass(typeArgument);
.getActualTypeArguments(); final Type typeArgument = actualTypeArguments[isMap ? 1 : 0]; itemType = getClass(typeArgument);
.getActualTypeArguments(); final Type typeArgument = actualTypeArguments[isMap ? 1 : 0]; itemType = getClass(typeArgument);
.getActualTypeArguments(); final Type typeArgument = actualTypeArguments[isMap ? 1 : 0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);
final Type typeArgument = ((ParameterizedType)genericType) .getActualTypeArguments()[0]; itemType = getClass(typeArgument);