Package me.pixodro.j2cpp.core.rewrite

Examples of me.pixodro.j2cpp.core.rewrite.ContainerNode


        IASTNode newNode = parentModification.getNewNode();
        final T appendedTNode = cast(newNode, clazz);
        if (appendedTNode != null) {
          modifiedChildren.add(appendedTNode);
        } else if (newNode instanceof ContainerNode) {
          final ContainerNode nodeContainer = (ContainerNode) newNode;
          for (final IASTNode currentNode : nodeContainer.getNodes()) {
            final T tnode = cast(currentNode, clazz);
            if (tnode != null) {
              modifiedChildren.add(tnode);
            }
          }
        }
        break;

      case INSERT_BEFORE:
        newNode = parentModification.getNewNode();
        if (newNode instanceof ContainerNode) {
          final ContainerNode contNode = (ContainerNode) newNode;
          for (final IASTNode node : contNode.getNodes()) {
            insertNode(clazz, modifiedChildren, parentModification, node);
          }
        } else {
          insertNode(clazz, modifiedChildren, parentModification, newNode);
        }
View Full Code Here

TOP

Related Classes of me.pixodro.j2cpp.core.rewrite.ContainerNode

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.