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, JavaRewriter.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 TypeMethodDescriptionJavaRewriter.attachComponent(InsertionPoint insertionPoint, JavaComponent component, JavaComponent parent, String layoutVariableName, ComponentInfo referenceComponent, com.github.javaparser.ast.expr.Expression variableNameExpr, String variableName, JavaRewriter.AddTemplateOptions options, JavaRewriter.Where where) JavaRewriter.createComponentStatements(InsertionPoint insertionPoint, JavaComponent parent, JavaComponent maybeJavaComponent, boolean attach, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options, JavaRewriter.Where where, JavaSource javaSource) JavaRewriter.createComponentStatements(InsertionPoint insertionPoint, JavaComponent parent, List<JavaComponent> template, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options, JavaRewriter.Where where, JavaSource javaSource) static StringJavaRewriterUtil.generateVariableName(JavaComponent javaComponent, 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(JavaComponent javaComponent, 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 JavaComponent.static voidJavaDataProviderHandler.handleDataStatementsAndClearDataProps(com.github.javaparser.ast.CompilationUnit compilationUnit, JavaDataProviderHandler.FieldOrVariable parent, JavaComponent javaComponent, 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, JavaComponent javaComponent, JavaSource javaSource) Insert setters for given java component.booleanInsertionPoint.isAfter(InsertionPoint referenceLocation) Checks if this location is inside the same block as the reference location but after it.static voidFlowComponentQuirks.menuBarInsertItemsPropsToAddItem(JavaComponent javaComponent, 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, JavaComponent component, InsertionPoint insertionPoint, JavaComponent parent, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options, JavaSource javaSource) abstract List<com.github.javaparser.ast.body.VariableDeclarator> CustomComponentHandle.createComponentStatements(JavaRewriter javaRewriter, JavaComponent component, InsertionPoint insertionPoint, JavaComponent parent, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options, JavaSource javaSource) List<com.github.javaparser.ast.body.VariableDeclarator> DashboardComponentHandle.createComponentStatements(JavaRewriter javaRewriter, JavaComponent component, InsertionPoint insertionPoint, JavaComponent parent, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options, JavaSource javaSource) List<com.github.javaparser.ast.body.VariableDeclarator> DetailsComponentHandle.createComponentStatements(JavaRewriter javaRewriter, JavaComponent component, InsertionPoint insertionPoint, JavaComponent parent, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options, JavaSource javaSource) protected voidCustomComponentHandle.insertSetter(JavaComponent javaComponent, com.github.javaparser.ast.expr.ObjectCreationExpr constructor, JavaRewriter javaRewriter, String componentClassName, InsertionPoint insertionPoint, com.github.javaparser.ast.expr.NameExpr variableNameExpr, JavaSource javaSource)