Пример #1
0
 public Object unpack()
 {
     if (size() == 0)
     {
         return(XPathPathExpr.unpackValue(null));
     }
     else if (size() > 1)
     {
         throw new XPathTypeMismatchException("nodeset has more than one node [" + nodeContents() + "]; cannot convert to value");
     }
     else
     {
         return(getValAt(0));
     }
 }
Пример #2
0
 public IConditionExpr refToPathExpr(TreeReference ref_)
 {
     return(new XPathConditional(XPathPathExpr.fromRef(ref_)));
 }
Пример #3
0
 public Object getValAt(int i)
 {
     return(XPathPathExpr.getRefValue(instance, ec, getRefAt(i)));
 }
Пример #4
0
 public XPathReference(XPathPathExpr path)
 {
     ref_ = path.getReference();
 }