/** * Creates and returns a new rewriter for describing modifications to the * given list property of the given node. * * @param node the node * @param property the node's property; the child list property * @return a new list rewriter object * @throws IllegalArgumentException if the node or property is null, or if the node * is not part of this rewriter's AST, or if the property is not a node property, * or if the described modification is invalid */ public final ListRewrite getListRewrite(ASTNode node, ChildListPropertyDescriptor property) { if (node == null || property == null) { throw new IllegalArgumentException(); } validateIsCorrectAST(node); validateIsListProperty(property); validateIsPropertyOfNode(property, node); return new ListRewrite(this, node, property); }
/** * Creates and returns a new rewriter for describing modifications to the * given list property of the given node. * * @param node the node * @param property the node's property; the child list property * @return a new list rewriter object * @throws IllegalArgumentException if the node or property is null, or if the node * is not part of this rewriter's AST, or if the property is not a node property, * or if the described modification is invalid */ public final ListRewrite getListRewrite(ASTNode node, ChildListPropertyDescriptor property) { if (node == null || property == null) { throw new IllegalArgumentException(); } validateIsCorrectAST(node); validateIsListProperty(property); validateIsPropertyOfNode(property, node); return new ListRewrite(this, node, property); }
/** * Creates and returns a new rewriter for describing modifications to the * given list property of the given node. * * @param node the node * @param property the node's property; the child list property * @return a new list rewriter object * @throws IllegalArgumentException if the node or property is null, or if the node * is not part of this rewriter's AST, or if the property is not a node property, * or if the described modification is invalid */ public final ListRewrite getListRewrite(ASTNode node, ChildListPropertyDescriptor property) { if (node == null || property == null) { throw new IllegalArgumentException(); } validateIsCorrectAST(node); validateIsListProperty(property); validateIsPropertyOfNode(property, node); return new ListRewrite(this, node, property); }
/** * Creates and returns a new rewriter for describing modifications to the * given list property of the given node. * * @param node the node * @param property the node's property; the child list property * @return a new list rewriter object * @throws IllegalArgumentException if the node or property is null, or if the node * is not part of this rewriter's AST, or if the property is not a node property, * or if the described modification is invalid */ public final ListRewrite getListRewrite(ASTNode node, ChildListPropertyDescriptor property) { if (node == null || property == null) { throw new IllegalArgumentException(); } validateIsCorrectAST(node); validateIsListProperty(property); validateIsPropertyOfNode(property, node); return new ListRewrite(this, node, property); }
/** * Creates and returns a new rewriter for describing modifications to the * given list property of the given node. * * @param node the node * @param property the node's property; the child list property * @return a new list rewriter object * @throws IllegalArgumentException if the node or property is null, or if the node * is not part of this rewriter's AST, or if the property is not a node property, * or if the described modification is invalid */ public final ListRewrite getListRewrite(ASTNode node, ChildListPropertyDescriptor property) { if (node == null || property == null) { throw new IllegalArgumentException(); } validateIsCorrectAST(node); validateIsListProperty(property); validateIsPropertyOfNode(property, node); return new ListRewrite(this, node, property); }
/** * Creates and returns a new rewriter for describing modifications to the * given list property of the given node. * * @param node the node * @param property the node's property; the child list property * @return a new list rewriter object * @throws IllegalArgumentException if the node or property is null, or if the node * is not part of this rewriter's AST, or if the property is not a node property, * or if the described modification is invalid */ public final ListRewrite getListRewrite(ASTNode node, ChildListPropertyDescriptor property) { if (node == null || property == null) { throw new IllegalArgumentException(); } validateIsCorrectAST(node); validateIsListProperty(property); validateIsPropertyOfNode(property, node); return new ListRewrite(this, node, property); }