}
AnnotatedHeaderLengthMethod[] methods =
new AnnotatedHeaderLengthMethod[HeaderLength.Type.values().length];
Header header = c.getAnnotation(Header.class);
if (header != null && header.length() != -1) {
methods[HeaderLength.Type.HEADER.ordinal()] =
new AnnotatedHeaderLengthMethod(c, header.length(),
HeaderLength.Type.HEADER);
}
if (header != null && header.prefix() != -1) {
methods[HeaderLength.Type.PREFIX.ordinal()] =
new AnnotatedHeaderLengthMethod(c, header.prefix(),
HeaderLength.Type.PREFIX);
}
if (header != null && header.gap() != -1) {
methods[HeaderLength.Type.GAP.ordinal()] =
new AnnotatedHeaderLengthMethod(c, header.gap(),
HeaderLength.Type.GAP);
}
if (header != null && header.payload() != -1) {
methods[HeaderLength.Type.PAYLOAD.ordinal()] =
new AnnotatedHeaderLengthMethod(c, header.payload(),
HeaderLength.Type.PAYLOAD);
}
if (header != null && header.postfix() != -1) {
methods[HeaderLength.Type.POSTFIX.ordinal()] =
new AnnotatedHeaderLengthMethod(c, header.postfix(),
HeaderLength.Type.POSTFIX);
}
for (Method method : getMethods(c, HeaderLength.class)) {