We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.copilot.
Package com.vaadin.copilot
Class JavaRewriteHandler
java.lang.Object
com.vaadin.copilot.JavaRewriteHandler
All Implemented Interfaces:
Handles commands to rewrite Java source code.
-
Field Summary
FieldsFields inherited from interface com.vaadin.copilot.CopilotCommand
KEY_CANCEL_REQ_ID, KEY_REQ_ID
-
Constructor Summary
ConstructorsConstructorDescriptionJavaRewriteHandler
(ProjectManager projectManager) Creates the one and only handler.
-
Method Summary
Modifier and TypeMethodDescriptionfindComponentInfo
(elemental.json.JsonObject component) boolean
handleMessage
(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.copilot.CopilotCommand
handleConnect
-
Field Details
-
UNDO_LABEL
-
ERROR_KEY
See Also:
-
-
Constructor Details
-
JavaRewriteHandler
Creates the one and only handler.
Parameters:
projectManager
- the project manager
-
-
Method Details
-
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Specified by:
handleMessage
in interfaceCopilotCommand
-
findComponentInfo
public JavaRewriter.ComponentTypeAndSourceLocation findComponentInfo(elemental.json.JsonObject component)
-