Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/java/transform/refactoring"

Index

Functions

movePackageTransform

  • movePackageTransform(oldPackage: string, newPackage: string, globPattern?: string): CodeTransform
  • Move files from one package to another. Defaults to working on all Java and Kotlin source. Will work for Scala if you pass in the appropriate glob pattern to select the files you want.

    Parameters

    • oldPackage: string

      name of package to move from

    • newPackage: string

      name of package to move to

    • Default value globPattern: string = AllJavaAndKotlinFiles

      glob to select files. Defaults to all Java files in the project

    Returns CodeTransform

renameClassTransform

  • renameClassTransform(oldClass: string, newClass: string): CodeTransform

Generated using TypeDoc