SearchDSL

open class SearchDSL

DSL that facilitates the creation of a SearchSpecs object.

Constructors

SearchDSL
Link copied to clipboard
common
fun SearchDSL()

Types

Binding
Link copied to clipboard
common
class Binding(type: TypeToken<*>, tag: Any?) : SearchDSL.Spec

A binding return type constrained spec.

Spec
Link copied to clipboard
common
interface Spec

A function that modifies a SearchSpecs object to add its constraint.

Functions

and
Link copied to clipboard
common
infix fun SearchSpecs.and(spec: SearchDSL.Spec): SearchSpecs

Allows to merge to constraints.

Argument
Link copied to clipboard
common
fun Argument(argumentType: TypeToken<*>): SearchDSL.Spec

Creates an argument constrained spec.

Context
Link copied to clipboard
common
fun Context(contextType: TypeToken<*>): SearchDSL.Spec

Creates a context constrained spec.

tag
Link copied to clipboard
common
fun tag(tag: Any?): SearchDSL.Spec

Creates a tag constrained spec.

with
Link copied to clipboard
common
infix fun SearchSpecs.with(spec: SearchDSL.Spec): SearchSpecs

Allows to add a constraints spec.

Inheritors

Copy
Link copied to clipboard
FindDSL
Link copied to clipboard

Extensions

argument
Link copied to clipboard
common
inline fun <T : Any> SearchDSL.argument(): SearchDSL.Spec

Creates an argument constrained spec.

binding
Link copied to clipboard
common
inline fun <T : Any> SearchDSL.binding(tag: Any? = null): SearchDSL.Binding

Creates a return type constrained spec.

context
Link copied to clipboard
common
inline fun <T : Any> SearchDSL.context(): SearchDSL.Spec

Creates a context constrained spec.