Package com.sun.org.apache.xalan.internal.xsltc.dom

Examples of com.sun.org.apache.xalan.internal.xsltc.dom.SingletonIterator


     */
    public static DTMAxisIterator nodesetF(Object obj) {
        if (obj instanceof DOM) {
           //final DOMAdapter adapter = (DOMAdapter) obj;
           final DOM dom = (DOM)obj;
           return new SingletonIterator(dom.getDocument(), true);
        }
        else if (obj instanceof DTMAxisIterator) {
           return (DTMAxisIterator) obj;
        }
        else {
View Full Code Here


                result = !result;
            }
        }
        else {
            if (left instanceof Node) {
                left = new SingletonIterator(((Node)left).node);
            }
            if (right instanceof Node) {
                right = new SingletonIterator(((Node)right).node);
            }

            if (hasSimpleType(left) ||
                left instanceof DOM && right instanceof DTMAxisIterator) {
                // swap operands and operator
View Full Code Here

     * obj is an instanceof Node then create a singleton iterator.
     */
    public static DTMAxisIterator referenceToNodeSet(Object obj) {
        // Convert var/param -> node
        if (obj instanceof Node) {
            return(new SingletonIterator(((Node)obj).node));
        }
        // Convert var/param -> node-set
        else if (obj instanceof DTMAxisIterator) {
            return(((DTMAxisIterator)obj).cloneIterator().reset());
        }
View Full Code Here

     * Utility function: used with nth position filters to convert a sequence
     * of nodes to just one single node (the one at position n).
     */
    public static DTMAxisIterator getSingleNode(DTMAxisIterator iterator) {
        int node = iterator.next();
        return(new SingletonIterator(node));
    }
View Full Code Here

     */
    public static DTMAxisIterator nodesetF(Object obj) {
  if (obj instanceof DOM) {
     //final DOMAdapter adapter = (DOMAdapter) obj;
     final DOM dom = (DOM)obj;
     return new SingletonIterator(dom.getDocument(), true);
  }
        else if (obj instanceof DTMAxisIterator) {
     return (DTMAxisIterator) obj;
        }
        else {
View Full Code Here

    result = !result;
      }
  }
  else {
      if (left instanceof Node) {
    left = new SingletonIterator(((Node)left).node);
      }
      if (right instanceof Node) {
    right = new SingletonIterator(((Node)right).node);
      }

      if (hasSimpleType(left) ||
    left instanceof DOM && right instanceof DTMAxisIterator) {
    // swap operands and operator
View Full Code Here

     * obj is an instanceof Node then create a singleton iterator.
     */
    public static DTMAxisIterator referenceToNodeSet(Object obj) {
  // Convert var/param -> node
  if (obj instanceof Node) {
      return(new SingletonIterator(((Node)obj).node));
  }
  // Convert var/param -> node-set
  else if (obj instanceof DTMAxisIterator) {
      return(((DTMAxisIterator)obj).cloneIterator());
  }
View Full Code Here

     * Utility function: used with nth position filters to convert a sequence
     * of nodes to just one single node (the one at position n).
     */
    public static DTMAxisIterator getSingleNode(DTMAxisIterator iterator) {
  int node = iterator.next();
  return(new SingletonIterator(node));
    }
View Full Code Here

     */
    public static DTMAxisIterator nodesetF(Object obj) {
        if (obj instanceof DOM) {
           //final DOMAdapter adapter = (DOMAdapter) obj;
           final DOM dom = (DOM)obj;
           return new SingletonIterator(dom.getDocument(), true);
        }
        else if (obj instanceof DTMAxisIterator) {
           return (DTMAxisIterator) obj;
        }
        else {
View Full Code Here

                result = !result;
            }
        }
        else {
            if (left instanceof Node) {
                left = new SingletonIterator(((Node)left).node);
            }
            if (right instanceof Node) {
                right = new SingletonIterator(((Node)right).node);
            }

            if (hasSimpleType(left) ||
                left instanceof DOM && right instanceof DTMAxisIterator) {
                // swap operands and operator
View Full Code Here

TOP

Related Classes of com.sun.org.apache.xalan.internal.xsltc.dom.SingletonIterator

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.