-
public final class UtilsKt
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDEFAULTS_BITFLAGS_FIELD_NAMEprivate final static StringnormalizedPackageName
-
Method Summary
Modifier and Type Method Description final StringgetNormalizedPackageName()final static TypeNametoTypeName(KSTypeReference $self)final static TypeNametoTypeName(KSType $self)final static ClassNametoClassName(KSType $self)final static ClassNametoClassName(KSClassDeclaration $self)final static UnitwriteTo(FileSpec $self, KSFile source, CodeGenerator codeGenerator)final static TypeNametoNullable(TypeName $self)final static TypeNametoNonNull(TypeName $self)final static ClassNametoRawType(TypeName $self)final static <T extends Annotation> BooleanhasAnnotation(KSAnnotated $self)final static <T extends Annotation> BooleanhasAnnotation(KSAnnotated $self, KClass<T> annotation)final static <T extends Annotation> KSAnnotationgetAnnotation(KSAnnotated $self)final static <T extends Annotation> KSAnnotationgetAnnotation(KSAnnotated $self, KClass<T> annotation)final static <T extends Annotation> KSTypegetAnnotationTypeProperty(KSAnnotated $self, KProperty1<T, KClass<?>> property)final static <T extends Annotation, R extends Any> RgetAnnotationProperty(KSAnnotated $self, KProperty1<T, R> property)final static ClassNamewithBuilderSuffix(ClassName $self)final static ClassNamewithBuilderSuffix(TypeName $self)final static List<KSClassDeclaration>getClassesWithAnnotation(Resolver $self, String name)-
-
Method Detail
-
getNormalizedPackageName
final String getNormalizedPackageName()
-
toTypeName
final static TypeName toTypeName(KSTypeReference $self)
-
toTypeName
final static TypeName toTypeName(KSType $self)
-
toClassName
final static ClassName toClassName(KSType $self)
-
toClassName
final static ClassName toClassName(KSClassDeclaration $self)
-
toNullable
final static TypeName toNullable(TypeName $self)
-
toNonNull
final static TypeName toNonNull(TypeName $self)
-
toRawType
final static ClassName toRawType(TypeName $self)
-
hasAnnotation
final static <T extends Annotation> Boolean hasAnnotation(KSAnnotated $self)
-
hasAnnotation
final static <T extends Annotation> Boolean hasAnnotation(KSAnnotated $self, KClass<T> annotation)
-
getAnnotation
final static <T extends Annotation> KSAnnotation getAnnotation(KSAnnotated $self)
-
getAnnotation
final static <T extends Annotation> KSAnnotation getAnnotation(KSAnnotated $self, KClass<T> annotation)
-
getAnnotationTypeProperty
final static <T extends Annotation> KSType getAnnotationTypeProperty(KSAnnotated $self, KProperty1<T, KClass<?>> property)
-
getAnnotationProperty
final static <T extends Annotation, R extends Any> R getAnnotationProperty(KSAnnotated $self, KProperty1<T, R> property)
-
withBuilderSuffix
final static ClassName withBuilderSuffix(ClassName $self)
-
withBuilderSuffix
final static ClassName withBuilderSuffix(TypeName $self)
-
getClassesWithAnnotation
final static List<KSClassDeclaration> getClassesWithAnnotation(Resolver $self, String name)
-
-
-
-