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 TypeMethodDescriptionstatic 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 TypeMethodDescriptionstatic StringJavaRewriterUtil.getNewComponentName(JavaComponent javaComponent, com.github.javaparser.ast.type.ClassOrInterfaceType type, InsertionPoint insertionPoint) Provides a free name to be used when adding a new component.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, com.github.javaparser.ast.body.VariableDeclarator parentVarDec, JavaComponent javaComponent, InsertionPoint insertionPoint, String dataEntityRecordName) Creates the data statements when adding a new template e.g.setItems,setItemLabelGeneratoretc...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.