MethodTransformer

class MethodTransformer(val scriptIdentifier: Identifier, val props: TransformerPropertiesStore, val targetClassName: String, val name: String, val desc: String, block: MethodNode.() -> Unit) : Transformer<MethodNode> (source)

Applies transformations to a Method.

Constructors

Link copied to clipboard
internal constructor(scriptIdentifier: Identifier, props: TransformerPropertiesStore, targetClassName: String, name: String, desc: String, block: MethodNode.() -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Additional transformer properties

Link copied to clipboard
open override val scriptIdentifier: Identifier

The owner script's identifier

Link copied to clipboard
open override val targetClassName: String

The name of the class to select for transformation

Functions

Link copied to clipboard
open override fun visit(node: MethodNode)

Transform an arbitrary object of this transformer's type.