boolean (XPathType exprType, XPathType type) { if (exprType == XPathType.NODESET) { if (type == XPathType.STRING && OPTIONS.get(0)) return true; if (type == XPathType.NUMBER && OPTIONS.get(4)) return true; if (type == XPathType.BOOLEAN && OPTIONS.get(8)) return true; } else if (exprType == XPathType.STRING) { if (type == XPathType.NUMBER && OPTIONS.get(5)) return true; if (type == XPathType.BOOLEAN && OPTIONS.get(9)) return true; } else if (exprType == XPathType.NUMBER) { if (type == XPathType.STRING && OPTIONS.get(2)) return true; if (type == XPathType.BOOLEAN && OPTIONS.get(10)) return true; } else if (exprType == XPathType.BOOLEAN) { if (type == XPathType.STRING && OPTIONS.get(3)) return true; if (type == XPathType.NUMBER && OPTIONS.get(11)) return true; } return false; }