aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/JvmField.kt
blob: a2b641c9d7ee6bf8ed1b22a9f4a27de51b35a569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package org.jetbrains.dokka.model

import org.jetbrains.dokka.links.DRI

public const val JVM_FIELD_PACKAGE_NAME: String = "kotlin.jvm"
public const val JVM_FIELD_CLASS_NAMES: String = "JvmField"

public fun DRI.isJvmField(): Boolean = packageName == JVM_FIELD_PACKAGE_NAME && classNames == JVM_FIELD_CLASS_NAMES

public fun Annotations.Annotation.isJvmField(): Boolean = dri.isJvmField()