mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
44 lines
1.3 KiB
Plaintext
Vendored
44 lines
1.3 KiB
Plaintext
Vendored
public final class AnnotationParametersKt {
|
|
@RequiresPermission(anyOf = intArrayOf(1, 2, 3))
|
|
@IntRange(from = 10, to = 0)
|
|
@WithDefaultValue
|
|
@SuppressLint(value = "Lorem")
|
|
public static final fun foo() : int {
|
|
return 5
|
|
}
|
|
@IntRange(from = 0, to = 100)
|
|
@SuppressLint(value = <noref>("Lorem", "Ipsum", "Dolor"))
|
|
public static final fun bar() : void {
|
|
return Unit
|
|
}
|
|
@RequiresPermission(anyOf = collectionLiteral[1, 2, 3])
|
|
public static final fun fooWithArrLiteral() : int {
|
|
return 5
|
|
}
|
|
@RequiresStrPermission(strs = collectionLiteral["a", "b", "c"])
|
|
public static final fun fooWithStrArrLiteral() : int {
|
|
return 3
|
|
}
|
|
}
|
|
|
|
public abstract annotation IntRange {
|
|
public abstract fun from() : long = UastEmptyExpression
|
|
public abstract fun to() : long = UastEmptyExpression
|
|
}
|
|
|
|
public abstract annotation RequiresPermission {
|
|
public abstract fun anyOf() : int[] = UastEmptyExpression
|
|
}
|
|
|
|
public abstract annotation RequiresStrPermission {
|
|
public abstract fun strs() : java.lang.String[] = UastEmptyExpression
|
|
}
|
|
|
|
public abstract annotation WithDefaultValue {
|
|
public abstract fun value() : int = UastEmptyExpression
|
|
}
|
|
|
|
public abstract annotation SuppressLint {
|
|
public abstract fun value() : java.lang.String[] = UastEmptyExpression
|
|
}
|