private Calculator assignCalculator(AtomicType type0, AtomicType type1, boolean mustResolve) throws XPathException { Calculator calculator = Calculator.getCalculator(type0.getFingerprint(), type1.getFingerprint(), ArithmeticExpression.mapOpCode(operator), mustResolve); if (calculator == null) { XPathException de = new XPathException("Arithmetic operator is not defined for arguments of types (" + type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocation(getLocation()); de.setErrorCode("XPTY0004"); throw de; } return calculator; }
private Calculator assignCalculator(AtomicType type0, AtomicType type1, boolean mustResolve) throws XPathException { Calculator calculator = Calculator.getCalculator(type0.getFingerprint(), type1.getFingerprint(), ArithmeticExpression.mapOpCode(operator), mustResolve); if (calculator == null) { XPathException de = new XPathException("Arithmetic operator is not defined for arguments of types (" + type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocation(getLocation()); de.setErrorCode("XPTY0004"); throw de; } return calculator; }
type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocator(this); de.setErrorCode("XPTY0004");
type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocator(this); de.setErrorCode("XPTY0004");
type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocator(this); de.setErrorCode("XPTY0004");
type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocator(this); de.setErrorCode("XPTY0004");
type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocation(getLocation()); de.setIsTypeError(true);
type0.getDescription() + ", " + type1.getDescription() + ")"); de.setLocation(getLocation()); de.setIsTypeError(true);