byte (boolean isEnumConst, boolean isDeprecated, boolean hasDeprecatedAnnotation, boolean hasDocComment) { byte flags = 0; if (isEnumConst) flags |= ENUM_CONST; if (isDeprecated) flags |= DEPRECATED; if (hasDeprecatedAnnotation) flags |= DEPRECATED_ANNOTATION; if (hasDocComment) flags |= HAS_DOC_COMMENT; return flags; }