thrifty-java-codegen / com.microsoft.thrifty.gen / ThriftyCodeGenerator

ThriftyCodeGenerator

class ThriftyCodeGenerator

Constructors

<init>

ThriftyCodeGenerator(schema: Schema, namingPolicy: FieldNamingPolicy = FieldNamingPolicy.DEFAULT)

Functions

emitFileComment

fun emitFileComment(emitFileComment: Boolean): ThriftyCodeGenerator

emitGeneratedAnnotations

fun emitGeneratedAnnotations(annotationTypeName: String?): ThriftyCodeGenerator

emitParcelable

fun emitParcelable(emitParcelable: Boolean): ThriftyCodeGenerator

failOnUnknownEnumValues

fun failOnUnknownEnumValues(failOnUnknownEnumValues: Boolean): ThriftyCodeGenerator

generate

fun generate(directory: Path): Unit
fun generate(directory: File): Unit
fun generate(appendable: Appendable): Unit

generateTypes

fun generateTypes(): List<JavaFile>

nullabilityAnnotationType

fun nullabilityAnnotationType(type: NullabilityAnnotationType): ThriftyCodeGenerator

usingTypeProcessor

fun usingTypeProcessor(typeProcessor: TypeProcessor): ThriftyCodeGenerator

withListType

fun withListType(listClassName: String): ThriftyCodeGenerator

withMapType

fun withMapType(mapClassName: String): ThriftyCodeGenerator

withSetType

fun withSetType(setClassName: String): ThriftyCodeGenerator