RefactorActionInfo

sealed external interface RefactorActionInfo(source)

Represents a single refactoring action - for example, the "Extract Method..." refactor might offer several actions, each corresponding to a surround class or closure to extract into.

Properties

Link copied to clipboard
abstract var description: String

A description of this refactoring action to show to the user. If the parent refactoring is inlined away, this will be the only text shown, so this description should make sense by itself if the parent is inlineable=true

Link copied to clipboard
abstract var isInteractive: Boolean?

Indicates that the action requires additional arguments to be passed when calling getEditsForRefactor.

Link copied to clipboard
abstract var kind: String?

The hierarchical dotted name of the refactor action.

Link copied to clipboard
abstract var name: String

The programmatic name of the refactoring action

Link copied to clipboard

A message to show to the user if the refactoring cannot be applied in the current context.