Package io.outfoxx.swiftpoet

Types

AnyTypeSpec
Link copied to clipboard
abstract class AnyTypeSpec(name: String, attributes: List<AttributeSpec>, tags: Map<KClass<*>, Any>) : AttributedSpec
AttributedSpec
Link copied to clipboard
open class AttributedSpec(attributes: List<AttributeSpec>, tags: Map<KClass<*>, Any>) : Taggable
AttributeSpec
Link copied to clipboard
class AttributeSpec : Taggable
CodeBlock
Link copied to clipboard
class CodeBlock
A fragment of a .kt file, potentially containing declarations, statements, and documentation.
ComposedTypeName
Link copied to clipboard
class ComposedTypeName : TypeName
DeclaredTypeName
Link copied to clipboard
class DeclaredTypeName : TypeName, Comparable<DeclaredTypeName>
A fully-qualified type name for top-level and member types.
EnumerationCaseSpec
Link copied to clipboard
class EnumerationCaseSpec : AttributedSpec
ExtensionSpec
Link copied to clipboard
class ExtensionSpec : Taggable
A generated class, protocol, or enum declaration.
FileMemberSpec
Link copied to clipboard
class FileMemberSpec : Taggable
FileSpec
Link copied to clipboard
class FileSpec : Taggable
A Kotlin file containing top level objects like classes, objects, functions, properties, and type aliases.
FunctionSpec
Link copied to clipboard
class FunctionSpec : AttributedSpec
A generated function declaration.
FunctionTypeName
Link copied to clipboard
class FunctionTypeName : TypeName
ImportSpec
Link copied to clipboard
class ImportSpec : AttributedSpec, Comparable<ImportSpec>
Modifier
Link copied to clipboard
enum Modifier : Enum<Modifier>
NameAllocator
Link copied to clipboard
class NameAllocator
Assigns Swift identifier names to avoid collisions, keywords, and invalid characters.
ParameterizedTypeName
Link copied to clipboard
class ParameterizedTypeName : TypeName
ParameterSpec
Link copied to clipboard
class ParameterSpec : AttributedSpec
A generated parameter declaration.
PropertySpec
Link copied to clipboard
class PropertySpec : AttributedSpec
A generated property declaration.
SelfTypeName
Link copied to clipboard
class SelfTypeName : TypeName
Taggable
Link copied to clipboard
abstract class Taggable(tags: Map<KClass<*>, Any>)
A type that can be tagged with extra metadata of the user's choice.
TupleTypeName
Link copied to clipboard
class TupleTypeName : TypeName
TypeAliasSpec
Link copied to clipboard
class TypeAliasSpec : AnyTypeSpec
A generated typealias declaration
TypeName
Link copied to clipboard
abstract class TypeName
Any type in Swift's type system.
TypeSpec
Link copied to clipboard
class TypeSpec : AnyTypeSpec
A generated class, struct, enum or protocol declaration.
TypeVariableName
Link copied to clipboard
class TypeVariableName : TypeName

Functions

joinToCode
Link copied to clipboard
fun Collection<CodeBlock>.joinToCode(separator: CharSequence = ", ", prefix: CharSequence = "", suffix: CharSequence = ""): CodeBlock
parameterizedBy
Link copied to clipboard
fun DeclaredTypeName.parameterizedBy(vararg typeArguments: TypeName): ParameterizedTypeName
tag
Link copied to clipboard
inline fun <T : Any> Taggable.tag(): T?
Returns the tag attached with T as a key, or null if no tag is attached with that key.
inline fun <T : Any> AttributeSpec.Builder.tag(tag: T?): AttributeSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> EnumerationCaseSpec.Builder.tag(tag: T?): EnumerationCaseSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> ExtensionSpec.Builder.tag(tag: T?): ExtensionSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> FileMemberSpec.Builder.tag(tag: T?): FileMemberSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> FileSpec.Builder.tag(tag: T?): FileSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> FunctionSpec.Builder.tag(tag: T?): FunctionSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> ImportSpec.Builder.tag(tag: T?): ImportSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> ParameterSpec.Builder.tag(tag: T?): ParameterSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> PropertySpec.Builder.tag(tag: T?): PropertySpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> TypeAliasSpec.Builder.tag(tag: T?): TypeAliasSpec.Builder
Attaches tag to the request using T as a key.
inline fun <T : Any> TypeSpec.Builder.tag(tag: T?): TypeSpec.Builder
Attaches tag to the request using T as a key.

Properties

ANY
Link copied to clipboard
val ANY: DeclaredTypeName
ANY_CLASS
Link copied to clipboard
val ANY_CLASS: DeclaredTypeName
ANY_OBJECT
Link copied to clipboard
val ANY_OBJECT: DeclaredTypeName
ARRAY
Link copied to clipboard
val ARRAY: DeclaredTypeName
BOOL
Link copied to clipboard
val BOOL: DeclaredTypeName
CASE_ITERABLE
Link copied to clipboard
val CASE_ITERABLE: DeclaredTypeName
DATA
Link copied to clipboard
val DATA: DeclaredTypeName
DICTIONARY
Link copied to clipboard
val DICTIONARY: DeclaredTypeName
DOUBLE
Link copied to clipboard
val DOUBLE: DeclaredTypeName
FLOAT
Link copied to clipboard
val FLOAT: DeclaredTypeName
FLOAT32
Link copied to clipboard
val FLOAT32: DeclaredTypeName
FLOAT64
Link copied to clipboard
val FLOAT64: DeclaredTypeName
FLOAT80
Link copied to clipboard
val FLOAT80: DeclaredTypeName
INT
Link copied to clipboard
val INT: DeclaredTypeName
INT16
Link copied to clipboard
val INT16: DeclaredTypeName
INT32
Link copied to clipboard
val INT32: DeclaredTypeName
INT64
Link copied to clipboard
val INT64: DeclaredTypeName
INT8
Link copied to clipboard
val INT8: DeclaredTypeName
OPTIONAL
Link copied to clipboard
val OPTIONAL: DeclaredTypeName
SET
Link copied to clipboard
val SET: DeclaredTypeName
STRING
Link copied to clipboard
val STRING: DeclaredTypeName
UIN16
Link copied to clipboard
val UIN16: DeclaredTypeName
UINT32
Link copied to clipboard
val UINT32: DeclaredTypeName
UINT64
Link copied to clipboard
val UINT64: DeclaredTypeName
UINT8
Link copied to clipboard
val UINT8: DeclaredTypeName
VOID
Link copied to clipboard
val VOID: DeclaredTypeName