Class JavaRewriteHandler

java.lang.Object
com.vaadin.copilot.JavaRewriteHandler
All Implemented Interfaces:
CopilotCommand

public class JavaRewriteHandler extends Object implements CopilotCommand
Handles commands to rewrite Java source code.
  • Field Details

    • UNDO_LABEL

      public static final String UNDO_LABEL
  • Constructor Details

    • JavaRewriteHandler

      public JavaRewriteHandler(ProjectManager projectManager)
      Creates the one and only handler.
      Parameters:
      projectManager - the project manager
  • Method Details

    • handleMessage

      public boolean handleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Specified by:
      handleMessage in interface CopilotCommand
    • findTypeAndSourceLocation

      public ComponentTypeAndSourceLocation findTypeAndSourceLocation(elemental.json.JsonObject component)
    • findTypeAndSourceLocation

      public ComponentTypeAndSourceLocation findTypeAndSourceLocation(elemental.json.JsonObject component, boolean includeChildren)