Uses of Class
com.vaadin.copilot.javarewriter.InsertionPoint
Packages that use InsertionPoint
-
Uses of InsertionPoint in com.vaadin.copilot.javarewriter
Methods in com.vaadin.copilot.javarewriter that return InsertionPointModifier and TypeMethodDescriptionJavaRewriter.findInsertionPointForAppend(ComponentInfo component, Where where) static InsertionPointJavaRewriterUtil.findLocationAfter(com.github.javaparser.ast.Node node) Finds the insert location after of given expression.static InsertionPointJavaRewriterUtil.findLocationAtEnd(com.github.javaparser.ast.stmt.Statement statement) Finds the insert location at the end of the code block containing the given statement.static InsertionPointJavaRewriterUtil.findLocationBefore(com.github.javaparser.ast.Node node) Finds the insert location before of given expression.Methods in com.vaadin.copilot.javarewriter with parameters of type InsertionPointModifier and TypeMethodDescriptionstatic @NonNull com.github.javaparser.ast.expr.MethodCallExprJavaRewriterUtil.addFunctionCall(InsertionPoint insertionPoint, ComponentInfo componentInfo, String function, List<com.github.javaparser.ast.expr.Expression> parameterExpressions, com.github.javaparser.ast.expr.ObjectCreationExpr initializer) JavaRewriter.attachComponent(InsertionPoint insertionPoint, CopilotComponent component, CopilotComponent parent, String layoutVariableName, ComponentInfo referenceComponent, com.github.javaparser.ast.expr.Expression variableNameExpr, String variableName, AddTemplateOptions options, Where where) JavaRewriter.attachComponent(InsertionPoint insertionPoint, CopilotComponent component, CopilotComponent parent, String layoutVariableName, ComponentInfo referenceComponent, com.github.javaparser.ast.expr.Expression variableNameExpr, String variableName, AddTemplateOptions options, Where where, com.github.javaparser.ast.expr.ObjectCreationExpr initializer) JavaRewriter.createComponentStatements(InsertionPoint insertionPoint, CopilotComponent parent, CopilotComponent maybeCopilotComponent, boolean attach, String layoutVariableName, ComponentInfo referenceComponent, AddTemplateOptions options, Where where, JavaSource javaSource) JavaRewriter.createComponentStatements(InsertionPoint insertionPoint, CopilotComponent parent, List<CopilotComponent> template, String layoutVariableName, ComponentInfo referenceComponent, AddTemplateOptions options, Where where, JavaSource javaSource) static List<com.github.javaparser.ast.expr.MethodCallExpr> JavaRewriterUtil.findMethodCallStatements(InsertionPoint insertionPoint, ComponentInfo componentDefinition) Find all method calls that are statements inside the block of an insertion point, i.e. calls like foo.bar() or baz.qux("zug")).static StringJavaRewriterUtil.generateVariableName(CopilotComponent copilotComponent, com.github.javaparser.ast.type.ClassOrInterfaceType type, InsertionPoint insertionPoint) Provides a free name to be used when adding a new component.com.github.javaparser.ast.NodeList<com.github.javaparser.ast.expr.Expression> JavaRewriter.getParameterList(InsertionPoint insertionPoint, Object value, JavaSource javaSource) static com.github.javaparser.ast.expr.ExpressionFlowComponentQuirks.getPropertySetExpression(CopilotComponent copilotComponent, String parentSetterName, String setterName, Object value, com.github.javaparser.ast.expr.Expression owner, InsertionPoint insertionPoint) Returns the expression to be used to set a property in a CopilotComponent.static voidJavaDataProviderHandler.handleDataStatementsAndClearDataProps(com.github.javaparser.ast.CompilationUnit compilationUnit, JavaDataProviderHandler.FieldOrVariable parent, CopilotComponent copilotComponent, InsertionPoint insertionPoint, String dataEntityRecordName) Creates the data statements when adding a new template e.g.setItems,setItemLabelGeneratoretc... and clears children or props if they are definition of data instead of real components.voidJavaRewriter.insertSetter(InsertionPoint insertionPoint, com.github.javaparser.ast.expr.Expression owner, String setterName, Object value, CopilotComponent copilotComponent, JavaSource javaSource) Insert setters for given java component.static voidFlowComponentQuirks.menuBarInsertItemsPropsToAddItem(CopilotComponent copilotComponent, InsertionPoint insertionPoint, com.github.javaparser.ast.expr.Expression owner, com.github.javaparser.ast.expr.Expression parent, String setterName, Object value, boolean submenu) Specific method to handle MenuBar items property. -
Uses of InsertionPoint in com.vaadin.copilot.javarewriter.custom
Methods in com.vaadin.copilot.javarewriter.custom with parameters of type InsertionPointModifier and TypeMethodDescriptionList<com.github.javaparser.ast.body.VariableDeclarator> CrudComponentHandle.createComponentStatements(JavaRewriter javaRewriter, CopilotComponent component, InsertionPoint insertionPoint, CopilotComponent parent, String layoutVariableName, ComponentInfo referenceComponent, AddTemplateOptions options, JavaSource javaSource) abstract List<com.github.javaparser.ast.body.VariableDeclarator> CustomComponentHandle.createComponentStatements(JavaRewriter javaRewriter, CopilotComponent component, InsertionPoint insertionPoint, CopilotComponent parent, String layoutVariableName, ComponentInfo referenceComponent, AddTemplateOptions options, JavaSource javaSource) List<com.github.javaparser.ast.body.VariableDeclarator> DashboardComponentHandle.createComponentStatements(JavaRewriter javaRewriter, CopilotComponent component, InsertionPoint insertionPoint, CopilotComponent parent, String layoutVariableName, ComponentInfo referenceComponent, AddTemplateOptions options, JavaSource javaSource) List<com.github.javaparser.ast.body.VariableDeclarator> DetailsComponentHandle.createComponentStatements(JavaRewriter javaRewriter, CopilotComponent component, InsertionPoint insertionPoint, CopilotComponent parent, String layoutVariableName, ComponentInfo referenceComponent, AddTemplateOptions options, JavaSource javaSource) protected voidCustomComponentHandle.insertSetter(CopilotComponent copilotComponent, com.github.javaparser.ast.expr.ObjectCreationExpr constructor, JavaRewriter javaRewriter, String componentClassName, InsertionPoint insertionPoint, com.github.javaparser.ast.expr.NameExpr variableNameExpr, JavaSource javaSource)