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)); } }
public IConditionExpr refToPathExpr(TreeReference ref_) { return(new XPathConditional(XPathPathExpr.fromRef(ref_))); }
public Object getValAt(int i) { return(XPathPathExpr.getRefValue(instance, ec, getRefAt(i))); }
public XPathReference(XPathPathExpr path) { ref_ = path.getReference(); }