/** * Returns the original nodes in the list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all original nodes in the list */ public List getOriginalList() { List list= (List) getEvent().getOriginalValue(); return Collections.unmodifiableList(list); }
/** * Returns the nodes in the revised list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all nodes in the list taking into account * all the described changes */ public List getRewrittenList() { List list= (List) getEvent().getNewValue(); return Collections.unmodifiableList(list); }
/** * Returns the original nodes in the list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all original nodes in the list */ public List getOriginalList() { List list= (List) getEvent().getOriginalValue(); return Collections.unmodifiableList(list); }
/** * Returns the original nodes in the list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all original nodes in the list */ public List getOriginalList() { List list= (List) getEvent().getOriginalValue(); return Collections.unmodifiableList(list); }
/** * Returns the nodes in the revised list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all nodes in the list taking into account * all the described changes */ public List getRewrittenList() { List list= (List) getEvent().getNewValue(); return Collections.unmodifiableList(list); }
/** * Returns the nodes in the revised list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all nodes in the list taking into account * all the described changes */ public List getRewrittenList() { List list= (List) getEvent().getNewValue(); return Collections.unmodifiableList(list); }
/** * Returns the nodes in the revised list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all nodes in the list taking into account * all the described changes */ public List getRewrittenList() { List list= (List) getEvent().getNewValue(); return Collections.unmodifiableList(list); }
/** * Returns the original nodes in the list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all original nodes in the list */ public List getOriginalList() { List list= (List) getEvent().getOriginalValue(); return Collections.unmodifiableList(list); }
/** * Returns the original nodes in the list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all original nodes in the list */ public List getOriginalList() { List list= (List) getEvent().getOriginalValue(); return Collections.unmodifiableList(list); }
/** * Returns the nodes in the revised list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all nodes in the list taking into account * all the described changes */ public List getRewrittenList() { List list= (List) getEvent().getNewValue(); return Collections.unmodifiableList(list); }
/** * Returns the original nodes in the list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all original nodes in the list */ public List getOriginalList() { List list= (List) getEvent().getOriginalValue(); return Collections.unmodifiableList(list); }
/** * Returns the nodes in the revised list property managed by this * rewriter. The returned list is unmodifiable. * * @return a list of all nodes in the list taking into account * all the described changes */ public List getRewrittenList() { List list= (List) getEvent().getNewValue(); return Collections.unmodifiableList(list); }
/** * Removes the given node from its parent's list property in the rewriter. * The node must be contained in the list. * The AST itself is not actually modified in any way; rather, the rewriter * just records a note that this node has been removed from this list. * * @param node the node being removed. The node can either be an original node in this list * or (since 3.4) a new node already inserted or used as replacement in this AST rewriter. * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not * part of this rewriter's AST, or if the described modification is invalid * (not a member of this node's original list) */ public void remove(ASTNode node, TextEditGroup editGroup) { if (node == null) { throw new IllegalArgumentException(); } RewriteEvent event= getEvent().removeEntry(node); if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
/** * Removes the given node from its parent's list property in the rewriter. * The node must be contained in the list. * The AST itself is not actually modified in any way; rather, the rewriter * just records a note that this node has been removed from this list. * * @param node the node being removed. The node can either be an original node in this list * or (since 3.4) a new node already inserted or used as replacement in this AST rewriter. * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not * part of this rewriter's AST, or if the described modification is invalid * (not a member of this node's original list) */ public void remove(ASTNode node, TextEditGroup editGroup) { if (node == null) { throw new IllegalArgumentException(); } RewriteEvent event= getEvent().removeEntry(node); if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }