SwiftGenerator

abstract class SwiftGenerator(val document: Document, val shapeIndex: ShapeIndex, val typeRegistry: SwiftTypeRegistry, val options: Generator.Options) : Generator

Generator for Swift language framework targets

Constructors

Link copied to clipboard
fun SwiftGenerator(document: Document, shapeIndex: ShapeIndex, typeRegistry: SwiftTypeRegistry, options: Generator.Options)

Types

Link copied to clipboard
data class URIParameter(val name: String, val typeName: TypeName, val shape: Shape?, val defaultValue: DataNode?)

Functions

Link copied to clipboard
open fun generateServiceType(serviceTypeName: DeclaredTypeName, endPoints: List<EndPoint>): TypeSpec.Builder
Link copied to clipboard
open override fun generateServiceTypes()
Link copied to clipboard
abstract fun processResourceMethodBodyParameter(endPoint: EndPoint, operation: Operation, payloadSchema: Shape, typeBuilder: TypeSpec.Builder, functionBuilder: FunctionSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
abstract fun processResourceMethodEnd(endPoint: EndPoint, operation: Operation, problemTypes: Map<URI, DeclaredTypeName>, typeBuilder: TypeSpec.Builder, functionBuilder: FunctionSpec.Builder): FunctionSpec
Link copied to clipboard
abstract fun processResourceMethodHeaderParameter(endPoint: EndPoint, operation: Operation, parameter: Parameter, typeBuilder: TypeSpec.Builder, functionBuilder: FunctionSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
abstract fun processResourceMethodQueryParameter(endPoint: EndPoint, operation: Operation, parameter: Parameter, typeBuilder: TypeSpec.Builder, functionBuilder: FunctionSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
abstract fun processResourceMethodStart(endPoint: EndPoint, operation: Operation, typeBuilder: TypeSpec.Builder, functionBuilder: FunctionSpec.Builder): FunctionSpec.Builder
Link copied to clipboard
abstract fun processResourceMethodUriParameter(endPoint: EndPoint, operation: Operation, parameter: Parameter, typeBuilder: TypeSpec.Builder, functionBuilder: FunctionSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
abstract fun processReturnType(endPoint: EndPoint, operation: Operation, response: Response, body: Shape?, problemTypes: Map<String, ProblemTypeDefinition>, typeBuilder: TypeSpec.Builder, functionBuilder: FunctionSpec.Builder, returnTypeName: TypeName): TypeName
Link copied to clipboard
abstract fun processServiceBegin(serviceTypeName: DeclaredTypeName, endPoints: List<EndPoint>): TypeSpec.Builder
Link copied to clipboard
open fun processServiceEnd(typeBuilder: TypeSpec.Builder): TypeSpec.Builder
Link copied to clipboard
fun resolveTypeName(shape: Shape, suggestedTypeName: DeclaredTypeName?): TypeName

Properties

Link copied to clipboard
val api: WebApi
Link copied to clipboard
Link copied to clipboard
val document: Document
Link copied to clipboard
open override val options: Generator.Options
Link copied to clipboard
Link copied to clipboard

Inheritors

Link copied to clipboard