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

Examples of org.aspectj.org.eclipse.jdt.core.dom.StructuralPropertyDescriptor


   */
  public final void remove(ASTNode node, TextEditGroup editGroup) {
    if (node == null) {
      throw new IllegalArgumentException();
    }
    StructuralPropertyDescriptor property= node.getLocationInParent();
    if (property.isChildListProperty()) {
      getListRewrite(node.getParent(), (ChildListPropertyDescriptor) property).remove(node, editGroup);
    } else {
      set(node.getParent(), property, null, editGroup);
    }
  }
View Full Code Here


   */   
  public final void replace(ASTNode node, ASTNode replacement, TextEditGroup editGroup) {
    if (node == null) {
      throw new IllegalArgumentException();
    }
    StructuralPropertyDescriptor property= node.getLocationInParent();
    if (property.isChildListProperty()) {
      getListRewrite(node.getParent(), (ChildListPropertyDescriptor) property).replace(node, replacement, editGroup);
    } else {
      set(node.getParent(), property, replacement, editGroup);
    }
  }
View Full Code Here

   *
   * @see #createAfter(IJavaElement)
   * @see #createBefore(IJavaElement)
   */
  protected void insertASTNode(ASTRewrite rewriter, ASTNode parent, ASTNode child) throws JavaModelException {
    StructuralPropertyDescriptor propertyDescriptor = getChildPropertyDescriptor(parent);
    if (propertyDescriptor instanceof ChildListPropertyDescriptor) {
      ChildListPropertyDescriptor childListPropertyDescriptor = (ChildListPropertyDescriptor) propertyDescriptor;
       ListRewrite rewrite = rewriter.getListRewrite(parent, childListPropertyDescriptor);
       switch (this.insertionPolicy) {
         case INSERT_BEFORE:
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.core.dom.StructuralPropertyDescriptor

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.