TransformerBuilder

class TransformerBuilder(scriptIdentifier: Identifier, transformers: MutableList<Transformer<*>>)(source)

Allows the easy creation of Transformers.

Constructors

Link copied to clipboard
internal constructor(scriptIdentifier: Identifier, transformers: MutableList<Transformer<*>>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun class(name: String, block: ClassNode.() -> Unit)

Add a class transformer.

Link copied to clipboard
fun field(owner: String, name: String, block: FieldNode.() -> Unit)

Add a field transformer.

Link copied to clipboard
fun method(owner: String, name: String, returnType: TypeLike, block: MethodNode.() -> Unit)
fun method(owner: String, name: String, desc: String, block: MethodNode.() -> Unit)
fun method(owner: String, name: String, returnType: TypeLike, parameterTypes: Array<TypeLike>, block: MethodNode.() -> Unit)

Add a method transformer.

Link copied to clipboard

Configure the extra properties of this script.