Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addCode(format: String, vararg args: Any): FunctionSpec.Builder
Link copied to clipboard
fun addComment(format: String, vararg args: Any): FunctionSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addParameter(name: String, type: TypeName, vararg modifiers: Modifier): FunctionSpec.Builder
fun addParameter(label: String, name: String, type: TypeName, vararg modifiers: Modifier): FunctionSpec.Builder
Link copied to clipboard
Link copied to clipboard
fun addStatement(format: String, vararg args: Any): FunctionSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun beginControlFlow(controlFlowName: String, controlFlowCode: String, vararg args: Any): FunctionSpec.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun nextControlFlow(controlFlowName: String, controlFlowCode: String, vararg args: Any?): FunctionSpec.Builder
Link copied to clipboard
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): FunctionSpec.Builder
fun <T : Any> tag(type: KClass<T>, tag: T?): FunctionSpec.Builder

Attaches tag to the request using type as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for type.

Link copied to clipboard

Properties

Link copied to clipboard

Mutable list of the current attributes this builder contains.

Link copied to clipboard

Mutable map of the current tags this builder contains.

Extensions

Link copied to clipboard

Attaches tag to the request using T as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for T.