210211212213214215216217218219220221
return FieldOption.OPTIONAL; } } private int getFieldIndex(final Field field, int maxIndex) { Index a = field.getAnnotation(Index.class); if (a == null) { return maxIndex + 1; } else { return a.value(); } }
193194195196197198199200201202203204
int setterIndex = getMethodIndex(desc.getWriteMethod()); return setterIndex; } private int getMethodIndex(Method method) { Index a = method.getAnnotation(Index.class); if (a == null) { return -1; } else { return a.value(); } }
165166167168169170171172173174175176
return FieldOption.IGNORE; } } private static int readFieldIndex(Field field, int maxIndex) { Index a = field.getAnnotation(Index.class); if(a == null) { return maxIndex + 1; } else { return a.value(); } }
161162163164165166167168169170171172
} int forSetter = readMethodIndex(desc.getWriteMethod()); return forSetter; } private int readMethodIndex(Method method){ Index a = method.getAnnotation(Index.class); if(a == null) { return -1; } else { return a.value(); } }