Package se.ansman.kotshi.ksp
Class AnnotationsKt
-
- All Implemented Interfaces:
public final class AnnotationsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Annotation> KSAnnotationgetAnnotation(KSAnnotated $self)final static KSAnnotationgetAnnotation(KSAnnotated $self, Class<out Annotation> type)final static <T extends Annotation> KSAnnotationgetAnnotation(Sequence<KSAnnotation> $self)final static KSAnnotationgetAnnotation(Sequence<KSAnnotation> $self, Class<out Annotation> type)final static <V extends Any> VgetValue(KSAnnotation $self, String name)final static <V extends Any> VgetValueOrDefault(KSAnnotation $self, String name, Function0<V> defaultValue)final static <V extends Enum<V>> VgetEnumValue(KSAnnotation $self, String name, V defaultValue)final static BooleanisJsonQualifier(KSAnnotation $self)final static AnnotationModeltoAnnotationModel(KSAnnotation $self)-
-
Method Detail
-
getAnnotation
final static <T extends Annotation> KSAnnotation getAnnotation(KSAnnotated $self)
-
getAnnotation
final static KSAnnotation getAnnotation(KSAnnotated $self, Class<out Annotation> type)
-
getAnnotation
final static <T extends Annotation> KSAnnotation getAnnotation(Sequence<KSAnnotation> $self)
-
getAnnotation
final static KSAnnotation getAnnotation(Sequence<KSAnnotation> $self, Class<out Annotation> type)
-
getValueOrDefault
final static <V extends Any> V getValueOrDefault(KSAnnotation $self, String name, Function0<V> defaultValue)
-
getEnumValue
final static <V extends Enum<V>> V getEnumValue(KSAnnotation $self, String name, V defaultValue)
-
isJsonQualifier
final static Boolean isJsonQualifier(KSAnnotation $self)
-
toAnnotationModel
final static AnnotationModel toAnnotationModel(KSAnnotation $self)
-
-
-
-