kotlinpoet-metadata-specs

kotlinpoet-metadata-specs / com.squareup.kotlinpoet.metadata.specs

Package com.squareup.kotlinpoet.metadata.specs

Types

Name Summary
ClassData Represents relevant information on a Kotlin class used for ClassInspector. Can only ever be applied on a class and not file facades.data class ClassData :ContainerData
ClassInspector A basic interface for looking up JVM information about a given Class.interface ClassInspector
ConstructorData Represents relevant information on a constructor used for ClassInspector. Should only be associated with constructors of a ClassData.data class ConstructorData
ContainerData Represents relevant information on a declaration container used for ClassInspector. Can only ever be applied on a Kotlin type (i.e. is annotated with Metadata).interface ContainerData
EnumEntryData Represents relevant information on a Kotlin enum entry.data class EnumEntryData
FieldData Represents relevant information on a field used for ClassInspector. Should only be associated with a PropertyData.data class FieldData
FileData Represents relevant information on a file facade used for ClassInspector.data class FileData :ContainerData
JvmFieldModifier Modifiers that are annotations in Kotlin but modifier keywords in bytecode.enum class JvmFieldModifier :JvmModifier
JvmMethodModifier Modifiers that are annotations in Kotlin but modifier keywords in bytecode.enum class JvmMethodModifier :JvmModifier
JvmModifier Represents a JVM modifier that is represented as an annotation in Kotlin but as a modifier in bytecode. Examples include annotations such as @JvmStatic or @JvmSynthetic.interface JvmModifier
MethodData Represents relevant information on a method used for ClassInspector. Should only be associated with methods of a ClassData or PropertyData.data class MethodData
PropertyData Represents relevant information on a property used for ClassInspector. Should only be associated with properties of a ClassData.data class PropertyData
TypeNameAliasTag This tag indicates that this TypeName represents a typealias type.class TypeNameAliasTag

Extensions for External Classes

Name Summary
com.squareup.kotlinpoet.metadata.ImmutableKmClass
com.squareup.kotlinpoet.metadata.ImmutableKmPackage
java.lang.Class
javax.lang.model.element.TypeElement
kotlin.reflect.KClass

Functions

Name Summary
classFor Looks up other classes, such as for nested members. Note that this class would always be Kotlin, so Metadata can be relied on for this.funClassInspector.classFor(className: ClassName): ImmutableKmClass
containerData Creates a new ContainerData instance for a given className.funClassInspector.containerData(className: ClassName, parentClassName: ClassName?):ContainerData