-
- All Implemented Interfaces:
public final class KsputilsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Annotation> BooleancouldBe(KSAnnotation $self, KClass<T> annotation)Light check without type resolution. final static <T extends Annotation> BooleanisEqualTo(KSAnnotation $self, KClass<T> annotation)Heavy check with type resolution final static <T extends Annotation> KSAnnotationfindAnnotation(KSAnnotated $self, KClass<T> annotation)final static TypeNameasTypeName(KSTypeReference $self)final static TypeNameasTypeName(KSType $self)final static ClassNameasClassName(KSDeclaration $self)final static ClassNameasClassName(KSType $self)-
-
Method Detail
-
couldBe
final static <T extends Annotation> Boolean couldBe(KSAnnotation $self, KClass<T> annotation)
Light check without type resolution. A positive result does not guarantee equality
-
isEqualTo
final static <T extends Annotation> Boolean isEqualTo(KSAnnotation $self, KClass<T> annotation)
Heavy check with type resolution
-
findAnnotation
final static <T extends Annotation> KSAnnotation findAnnotation(KSAnnotated $self, KClass<T> annotation)
-
asTypeName
final static TypeName asTypeName(KSTypeReference $self)
-
asTypeName
final static TypeName asTypeName(KSType $self)
-
asClassName
final static ClassName asClassName(KSDeclaration $self)
-
asClassName
final static ClassName asClassName(KSType $self)
-
-
-
-