MetaTransformationBuilder

class MetaTransformationBuilder

A builder for a set of transformation rules

Constructors

MetaTransformationBuilder
Link copied to clipboard
common
fun MetaTransformationBuilder()

Functions

build
Link copied to clipboard
common
fun build(): MetaTransformation
keep
Link copied to clipboard
common
fun keep(selector: (Name) -> Boolean)

Keep all items with name satisfying the criteria

fun keep(regex: String)

Keep nodes by regex

fun keep(name: Name)

Keep specific item (including its descendants)

move
Link copied to clipboard
common
fun move(from: Name, to: Name, operation: (Meta?) -> Meta? = { it })

Move an item from from to to, optionally applying operation it defined