ClassTransformer

class ClassTransformer(val scriptIdentifier: Identifier, val props: TransformerPropertiesStore, val targetClassName: String, block: ClassNode.() -> Unit) : Transformer<ClassNode> (source)

Applies transformations to a Class.

Constructors

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

Properties

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: ClassNode)

Transform an arbitrary object of this transformer's type.