Examples of effectiveBooleanValue()


Examples of org.exist.xquery.value.Sequence.effectiveBooleanValue()

      int p = 0;     
      for (final SequenceIterator i = contextSequence.iterate(); i.hasNext(); p++) {
        final Item item = i.nextItem();
        context.setContextSequencePosition(p, contextSequence);
                final Sequence innerSeq = whereExpr.eval(contextSequence, item);               
        if (innerSeq.effectiveBooleanValue())
          {result.add(item);}                   
      }
      return result;
    }
  }
View Full Code Here

Examples of org.pdf4j.saxon.value.Value.effectiveBooleanValue()

        if (test instanceof Literal) {
            Value testVal = ((Literal)test).getValue();
            // condition known statically, so we only need compile the code if true.
            // This can happen with expressions such as test="function-available('abc')".
            try {
                if (testVal.effectiveBooleanValue()) {
                    return compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true);
//                    Block block = new Block();
//                    block.setLocationId(allocateLocationId(getSystemId(), getLineNumber()));
//                    compileChildren(exec, block, true);
//                    return block.simplify(getStaticContext());
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.