Class JavaRewriteHandler

java.lang.Object
com.vaadin.copilot.CopilotCommand
com.vaadin.copilot.JavaRewriteHandler

public class JavaRewriteHandler extends CopilotCommand
Handles commands to rewrite Java source code.
  • Constructor Details

    • JavaRewriteHandler

      public JavaRewriteHandler(SourceSyncChecker sourceSyncChecker)
      Creates the one and only handler.
      Parameters:
      sourceSyncChecker - the source sync checker for detecting out of sync scenarios
  • Method Details

    • handleMessage

      public boolean handleMessage(String command, tools.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Description copied from class: CopilotCommand
      Called whenever there is a message from the browser. Implementations should check if the command is for them, handle it and return true if the command was handled.
      Specified by:
      handleMessage in class CopilotCommand
      Parameters:
      command - the command to handle
      data - the data for the command
      devToolsInterface - the devtools interface for the connection
      Returns:
      true if the command was handled, false otherwise