short (boolean isDeprecated, boolean isInterface, boolean isEnum, boolean isEnumConstantInitializer, boolean isAnonymous, boolean isAnnotationType, boolean isInQualifiedNew, boolean hasDeprecatedAnnotation, boolean anonymousInner, boolean localClassInner, boolean hasDocComment, boolean isRecord, boolean isUnnamed) { short flags = 0; if (isDeprecated) flags |= DEPRECATED; if (isInterface) flags |= INTERFACE; if (isEnum) flags |= ENUM; if (isEnumConstantInitializer) flags |= ENUM_CONSTANT_INITIALIZER; if (isAnonymous) flags |= ANONYMOUS; if (isAnnotationType) flags |= ANON_TYPE; if (isInQualifiedNew) flags |= IN_QUALIFIED_NEW; if (hasDeprecatedAnnotation) flags |= DEPRECATED_ANNOTATION; if (anonymousInner) flags |= ANONYMOUS_INNER; if (localClassInner) flags |= LOCAL_CLASS_INNER; if (hasDocComment) flags |= HAS_DOC_COMMENT; if (isRecord) flags |= RECORD; if (isUnnamed) flags |= UNNAMED; return flags; }