commonMain.org.jetbrains.annotations.PropertyKey.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations Show documentation
Show all versions of annotations Show documentation
A set of annotations used for code inspection support and code documentation.
/*
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.annotations
/**
* Specifies that a method parameter, local variable, field or a method return value
* must be a valid property key in a specific resource bundle. When a string literal
* which is not a property key in the specified bundle is passed as a parameter,
* static analyzers may highlight it as an error. The annotation is also could be used
* by IDEs to provide completion in string literals passed as parameters.
*/
@MustBeDocumented
@Retention(AnnotationRetention.BINARY)
@Target(
AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.LOCAL_VARIABLE,
AnnotationTarget.FIELD,
AnnotationTarget.TYPE,
)
@kotlin.jvm.ImplicitlyActualizedByJvmDeclaration
expect annotation class PropertyKey(
/**
* The full-qualified name of the resource bundle in which the property keys must
* be present. Consists of a full-qualified name of the package corresponding to the
* directory where the resource bundle is located and the base name of the resource
* bundle (with no locale specifier or extension), separated with a dot.
*/
@get:NonNls val resourceBundle: String
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy