Package org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite

Examples of org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.NodeInfoStore$StringPlaceholderData


   * @param ast the AST being rewritten
   */
  protected ASTRewrite(AST ast) {
    this.ast= ast;
    this.eventStore= new RewriteEventStore();
    this.nodeStore= new NodeInfoStore(ast);
  }
View Full Code Here


  private ASTNode createTargetNode(ASTNode first, ASTNode last, boolean isMove, ASTNode replacingNode, TextEditGroup editGroup) {
    if (first == null || last == null) {
      throw new IllegalArgumentException();
    }

    NodeInfoStore nodeStore= this.rewriter.getNodeStore();
    ASTNode placeholder= nodeStore.newPlaceholderNode(first.getNodeType()); // revisit: could use list type
    if (placeholder == null) {
      throw new IllegalArgumentException("Creating a target node is not supported for nodes of type" + first.getClass().getName()); //$NON-NLS-1$
    }
   
    Block internalPlaceHolder= nodeStore.createCollapsePlaceholder();
    CopySourceInfo info= getRewriteStore().createRangeCopy(this.parent, this.childProperty, first, last, isMove, internalPlaceHolder, replacingNode, editGroup);
    nodeStore.markAsCopyTarget(placeholder, info);
   
    return placeholder;   
  }
View Full Code Here

   * @param root root node of the recorded ast.
   */
  public InternalASTRewrite(CompilationUnit root) {
    this.root = root;
    this.eventStore = new RewriteEventStore();
    this.nodeStore = new NodeInfoStore(root.getAST());
    this.clonedNodes = new Hashtable();
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.NodeInfoStore$StringPlaceholderData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.