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.expr.Expression expr) 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.expr.Expression expr) Finds the insert location before of given expression.Methods in com.vaadin.copilot.javarewriter with parameters of type InsertionPointModifier and TypeMethodDescriptionvoidJavaRewriter.attachComponent(InsertionPoint insertionPoint, JavaComponent component, JavaComponent parent, String layoutVariableName, ComponentInfo referenceComponent, com.github.javaparser.ast.expr.Expression variableNameExpr, String variableName) List<com.github.javaparser.ast.body.VariableDeclarator> JavaRewriter.createComponentStatements(InsertionPoint insertionPoint, JavaComponent parent, JavaComponent maybeJavaComponent, boolean attach, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options) voidJavaRewriter.createComponentStatements(InsertionPoint insertionPoint, JavaComponent parent, List<JavaComponent> template, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options) 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) static com.github.javaparser.ast.expr.ExpressionFlowComponentQuirks.getPropertySetExpression(com.github.javaparser.ast.CompilationUnit compilationUnit, 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...voidJavaRewriter.insertSetter(InsertionPoint insertionPoint, com.github.javaparser.ast.expr.Expression owner, String setterName, Object value, com.github.javaparser.ast.CompilationUnit compilationUnit, JavaComponent javaComponent) Insert setters for given java component.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) 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) List<com.github.javaparser.ast.body.VariableDeclarator> DetailsComponentHandle.createComponentStatements(JavaRewriter javaRewriter, JavaComponent component, InsertionPoint insertionPoint, JavaComponent parent, String layoutVariableName, ComponentInfo referenceComponent, JavaRewriter.AddTemplateOptions options) 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)