Examples of childNodes()


Examples of com.trolltech.qt.xml.QDomElement.childNodes()

      QDomElement element = anchors.at(i).toElement();
      int x = new Integer(element.attribute("x"));   // x coordinate
      int y = new Integer(element.attribute("y"));   // y coordinate
      int w = new Integer(element.attribute("w"));   // width
      int h = new Integer(element.attribute("h"));   // height
      QDomNodeList children = element.childNodes()// all children ("t" nodes).
     
      // Go through the children ("t" nodes)
      for (int j=0; j<children.length(); j++) {
          QDomElement child = children.at(j).toElement();
          if (child.nodeName().equalsIgnoreCase("t")) {
View Full Code Here

Examples of com.trolltech.qt.xml.QDomNode.childNodes()

 
  private void parseNodes(QDomNodeList nodes) {
    for (int i=0; i<nodes.size(); i++) {
      QDomNode node = nodes.at(i);
      if (node.hasChildNodes()) {
        parseNodes(node.childNodes());
      }
      scanWords(node);
    }
}
 
View Full Code Here

Examples of com.trolltech.qt.xml.QDomNode.childNodes()

 
  private void parseNodes(QDomNodeList nodes) {
    for (int i=0; i<nodes.size(); i++) {
      QDomNode node = nodes.at(i);
      if (node.hasChildNodes())
        parseNodes(node.childNodes());
      fixNode(node);
    }
  }
 
View Full Code Here

Examples of groovy.util.slurpersupport.GPathResult.childNodes()

    String msgMeta = "";
    XmlSlurper slupler;
    try {
      slupler = new XmlSlurper();
      GPathResult result = slupler.parseText(message);
      for (Iterator iterator = result.childNodes(); iterator.hasNext();) {
        Node next = (Node)iterator.next();
        if(!"UWSInfo".equalsIgnoreCase(next.name())) {
          continue;
        }
        rawUWSInfo = next.text();
View Full Code Here

Examples of groovy.util.slurpersupport.NodeChild.childNodes()

        ));
        NodeChild root = (NodeChild)response.getData();
        NodeChild photosNode = (NodeChild)root.children().getAt(0);
       
        int i = 0;
        for (Iterator<Node> children = photosNode.childNodes(); i < 3 && children.hasNext(); i++) {
            Node photo = children.next();
            Map<String, Object> attributes = photo.attributes();
           
            photos.add(
                new Photo(attributes.get("title").toString(),   
View Full Code Here

Examples of org.jruby.ast.ArrayNode.childNodes()

                        Node node = (Node) ((Object[]) sourceArray)[index];
                        compile(node, context);
                    }
                };

        context.createNewArray(arrayNode.childNodes().toArray(), callback, arrayNode.isLightweight());
    }

    public void compileArgsCat(Node node, BodyCompiler context) {
        ArgsCatNode argsCatNode = (ArgsCatNode) node;
View Full Code Here

Examples of org.jruby.ast.ArrayNode.childNodes()

                        compile(node, context);
                    }
                };

        context.setLinePosition(arrayNode.getPosition());
        context.createObjectArray(arrayNode.childNodes().toArray(), callback);
    // leave as a normal array
    }

    public void compileSplatArguments(Node node, BodyCompiler context) {
        SplatNode splatNode = (SplatNode) node;
View Full Code Here

Examples of org.jruby.ast.ArrayNode.childNodes()

        public void call(BodyCompiler context) {
            if (node.nodeId == NodeType.ARRAYNODE) {
                ArrayNode arrayNode = (ArrayNode)node;
                if (arrayNode.isLightweight()) {
                    // explode array, it's an internal "args" array
                    for (Node n : arrayNode.childNodes()) {
                        compile(n, context);
                    }
                } else {
                    // use array as-is, it's a literal array
                    compile(arrayNode, context);
View Full Code Here

Examples of org.jruby.ast.ArrayNode.childNodes()

        public void call(BodyCompiler context) {
            if (node.getNodeType() == NodeType.ARRAYNODE) {
                ArrayNode arrayNode = (ArrayNode)node;
                if (arrayNode.isLightweight()) {
                    // explode array, it's an internal "args" array
                    for (Node n : arrayNode.childNodes()) {
                        compile(n, context,true);
                    }
                } else {
                    // use array as-is, it's a literal array
                    compile(arrayNode, context,true);
View Full Code Here

Examples of org.jruby.ast.ArrayNode.childNodes()

                    if (normalAssigns) {
                        // only supports simple parallel assignment of up to 4 values to the same number of assignees
                        int size = multipleAsgn19Node.getPreCount();
                        if (size >= 2 && size <= 10) {
                            ArrayNode values = (ArrayNode)multipleAsgn19Node.getValueNode();
                            for (Node value : values.childNodes()) {
                                compile(value, context, true);
                            }
                            context.reverseValues(size);
                            for (Node asgn : multipleAsgn19Node.getPre().childNodes()) {
                                compileAssignment(asgn, context, false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.