ArgName

@Target(allowedTargets = [AnnotationTarget.FIELD])
annotation class ArgName(val value: String)

Pins the stub argument a TaskInput field binds, for a Python name that no Java identifier reaches on its own.

A field without the annotation already matches its argument ignoring case and underscores, so an ordinary snake_case parameter needs no annotation:

public String regionCode;                       // binds region_code
@ArgName("class") public String klass; // binds a Python keyword

Reach for it when the argument name is not a legal or usable Java identifier. A pinned name is matched as written, with no folding, so the annotation says exactly which argument the field takes.

Parameters

value

Argument name as declared in the stub task's signature.

Properties

Link copied to clipboard