src/commonMain/kotlin/org/jetbrains/annotations/Nls.kt [16:51]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - package org.jetbrains.annotations /** * Specifies that an element of the program is a user-visible string which needs to be localized. * This annotation is intended to be used by localization tools for * detecting strings which should be reported as requiring localization. * * * * This annotation also could be used as a meta-annotation, to define derived annotations for convenience. * E.g. the following annotation could be defined to annotate the strings that represent dialog titles: * *
* @Nls(capitalization = Capitalization.Title)
* @interface DialogTitle {}
*
*
*
* Note that using the derived annotation as meta-annotation is not supported.
* Meta-annotation works only one level deep.
*
* @see NonNls
*/
@MustBeDocumented
@Retention(AnnotationRetention.BINARY)
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER,
AnnotationTarget.FIELD,
AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.LOCAL_VARIABLE,
AnnotationTarget.CLASS,
AnnotationTarget.TYPE,
AnnotationTarget.FILE
)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
src/nonJvmMain/kotlin/org/jetbrains/annotations/Nls.kt [16:51]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
package org.jetbrains.annotations
/**
* Specifies that an element of the program is a user-visible string which needs to be localized.
* This annotation is intended to be used by localization tools for
* detecting strings which should be reported as requiring localization.
*
*
*
* This annotation also could be used as a meta-annotation, to define derived annotations for convenience.
* E.g. the following annotation could be defined to annotate the strings that represent dialog titles:
*
*
* @Nls(capitalization = Capitalization.Title)
* @interface DialogTitle {}
*
*
*
* Note that using the derived annotation as meta-annotation is not supported.
* Meta-annotation works only one level deep.
*
* @see NonNls
*/
@MustBeDocumented
@Retention(AnnotationRetention.BINARY)
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER,
AnnotationTarget.FIELD,
AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.LOCAL_VARIABLE,
AnnotationTarget.CLASS,
AnnotationTarget.TYPE,
AnnotationTarget.FILE
)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -