예제 #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();
 }