Uses of Record Class
com.vaadin.copilot.javarewriter.ComponentTypeAndSourceLocation
Packages that use ComponentTypeAndSourceLocation
Package
Description
-
Uses of ComponentTypeAndSourceLocation in com.vaadin.copilot
Methods in com.vaadin.copilot that return ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionComponentSourceFinder._getSourceLocation(com.vaadin.flow.component.Component component) Gets the source location for the given component.ComponentSourceFinder.findTypeAndSourceLocation(int uiId, int nodeId) Finds the source location of a component.ComponentSourceFinder.findTypeAndSourceLocation(int uiId, int nodeId, boolean includeChildren) Finds the source location of a component.ComponentSourceFinder.findTypeAndSourceLocation(com.vaadin.flow.component.Component component, boolean includeChildren) Finds the source location of a component.ComponentSourceFinder.findTypeAndSourceLocation(tools.jackson.databind.JsonNode component) Finds the source location of a component.ComponentSourceFinder.findTypeAndSourceLocation(tools.jackson.databind.JsonNode component, boolean includeChildren) Finds the source location of a component.Methods in com.vaadin.copilot that return types with arguments of type ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionComponentSourceFinder.analyzeSourceFileAndGetComponentTypeAndSourceLocation(int nodeId, int uiId) Finds theComponentTypeAndSourceLocationfor given component withnodeIdin ui with iduiIdby analyzing the source code without using the createLocation provided by Flow.ComponentSourceFinder.analyzeSourceFileAndGetComponentTypeAndSourceLocation(com.vaadin.flow.component.Component component) Finds theComponentTypeAndSourceLocationfor given component with by analyzing the source code without using the createLocation provided by Flow.static Map<com.vaadin.flow.component.Component, ComponentTypeAndSourceLocation> FlowUtil.findAllComponents(com.vaadin.flow.server.VaadinSession session, int uiId) -
Uses of ComponentTypeAndSourceLocation in com.vaadin.copilot.customcomponent
Methods in com.vaadin.copilot.customcomponent with parameters of type ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionstatic voidCustomComponentHelper.addInfoFromComponentSource(ComponentTypeAndSourceLocation componentTypeAndSourceLocation, List<CustomComponentAddMethodInfo> methods) Updates add/replace flags based on its usageMethod parameters in com.vaadin.copilot.customcomponent with type arguments of type ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionstatic CustomComponentResponseDataCustomComponentHelper.generateResponse(com.vaadin.flow.server.VaadinSession vaadinSession, Map<com.vaadin.flow.component.Component, ComponentTypeAndSourceLocation> allComponents, List<com.vaadin.flow.component.Component> componentsInProject) Generates the response that is used in the UI -
Uses of ComponentTypeAndSourceLocation in com.vaadin.copilot.javarewriter
Methods in com.vaadin.copilot.javarewriter that return ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionComponentTypeAndSourceLocation.parent()Returns the value of theparentrecord component.Methods in com.vaadin.copilot.javarewriter that return types with arguments of type ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionComponentTypeAndSourceLocation.children()Returns the value of thechildrenrecord component.Methods in com.vaadin.copilot.javarewriter with parameters of type ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionvoidJavaBatchRewriter.Callback.accept(ComponentTypeAndSourceLocation source, ComponentInfo component, JavaRewriter rewriter) voidJavaBatchRewriter.duplicate(ComponentTypeAndSourceLocation componentSource) Deprecated, for removal: This API element is subject to removal in a future version.JavaRewriterCopyPasteHandler.getCopiedJavaComponent(JavaFileSourceProvider javaFileSourceProvider, ComponentTypeAndSourceLocation componentTypeAndSourceLocation, ExceptionReportCreator exceptionReportCreator) Collects required data for copying and pasting a componentstatic booleanJavaDataProviderHandler.isDataProviderItemChange(ComponentTypeAndSourceLocation componentTypeAndSourceLocation) Check for attach and create location is generated from DataProviderstatic booleanJavaRewriterUtil.isLocationRefersSource(ComponentTypeAndSourceLocation typeAndSourceLocation, com.github.javaparser.ast.CompilationUnit compilationUnit) Checks if given attach and create location refers to a source file instead of instance creation.voidSourceSyncChecker.throwIfViewDeleted(ComponentTypeAndSourceLocation componentTypeAndSourceLocation) Throws an exception if class from the givencomponentTypeAndSourceLocationis deleted during the lifetime of the application.Constructors in com.vaadin.copilot.javarewriter with parameters of type ComponentTypeAndSourceLocationModifierConstructorDescriptionComponentInfoFinder(JavaFileSourceProvider javaFileSourceProvider, ComponentTypeAndSourceLocation componentTypeAndSourceLocation) Constructs aComponentInfoFinderusing the defaultProjectFileManagerinstance and the given component source metadata.ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class<?>> inheritanceChain, com.vaadin.flow.component.Component component, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates a constructor with createdStaticallyComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class<?>> inheritanceChain, com.vaadin.flow.component.Component component, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children, boolean createdStatically) Creates an instance of aComponentTypeAndSourceLocationrecord class.ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class<?>> inheritanceChain, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates the entry where component is setnullJavaDataProviderHandler(JavaFileSourceProvider javaFileSourceProvider, ComponentTypeAndSourceLocation typeAndSourceLocation, ExceptionReportCreator exceptionReportCreator) Reads source file which is found from typeAndSourceLocationConstructor parameters in com.vaadin.copilot.javarewriter with type arguments of type ComponentTypeAndSourceLocationModifierConstructorDescriptionJavaBatchRewriter(JavaFileSourceProvider javaFileSourceProvider, List<ComponentTypeAndSourceLocation> componentLocations, ExceptionReportCreator exceptionReportCreator) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ComponentTypeAndSourceLocation in com.vaadin.copilot.javarewriter.exception
Methods in com.vaadin.copilot.javarewriter.exception that return ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionComponentInfoNotFoundException.getComponentTypeAndSourceLocation()Constructors in com.vaadin.copilot.javarewriter.exception with parameters of type ComponentTypeAndSourceLocationModifierConstructorDescriptionComponentInfoNotFoundException(ComponentTypeAndSourceLocation componentTypeAndSourceLocation, String message) -
Uses of ComponentTypeAndSourceLocation in com.vaadin.copilot.plugins.themeeditor
Methods in com.vaadin.copilot.plugins.themeeditor with parameters of type ComponentTypeAndSourceLocationModifier and TypeMethodDescriptionprotected com.github.javaparser.ast.stmt.ExpressionStmtJavaSourceModifier.findLocalClassNameStmt(com.github.javaparser.ast.CompilationUnit cu, ComponentTypeAndSourceLocation componentSource) protected WhereJavaSourceModifier.findModificationWhere(com.github.javaparser.ast.CompilationUnit cu, ComponentTypeAndSourceLocation componentSource) protected com.github.javaparser.ast.NodeJavaSourceModifier.findNode(com.github.javaparser.ast.CompilationUnit cu, ComponentTypeAndSourceLocation componentSource) protected com.github.javaparser.ast.CompilationUnitJavaSourceModifier.getCompilationUnit(ComponentTypeAndSourceLocation componentSource) voidJavaSourceModifier.removeLocalClassName(ComponentTypeAndSourceLocation componentSource) protected voidJavaSourceModifier.setLocalClassName(ComponentTypeAndSourceLocation componentSource, String className)