package com.intellij.java.performancePlugin;

import com.jetbrains.performancePlugin.CommandProvider;
import com.jetbrains.performancePlugin.CreateCommand;
import org.jetbrains.annotations.NotNull;

import java.util.Map;

final class JavaCommandProvider implements CommandProvider {
  @Override
  public @NotNull
  Map<String, CreateCommand> getCommands() {
    return Map.of(
      BuildCommand.PREFIX, BuildCommand::new,
      SyncJpsLibrariesCommand.PREFIX, SyncJpsLibrariesCommand::new,
      CreateJavaFileCommand.PREFIX, CreateJavaFileCommand::new,
      RenameDirectoryAsPackageCommand.PREFIX, RenameDirectoryAsPackageCommand::new,
      ChangeJavaSignatureCommand.PREFIX, ChangeJavaSignatureCommand::new,
      InlineJavaMethodCommand.PREFIX, InlineJavaMethodCommand::new,
      MoveClassToPackageCommand.PREFIX, MoveClassToPackageCommand::new
    );
  }
}
