else if (target == Integer.class || target == int.class) {
else if (target == Long.class || target == long.class) { return new Long( ((IntegerValue) convertTo(Type.LONG)).getValue() ); } else if (target == Integer.class || target == int.class) {
	public Object toJavaObject(Class target) throws XPathException {		if (target.isAssignableFrom(DoubleValue.class))			return this;		else if (target == Double.class || target == double.class)			return new Double(value);		else if (target == Float.class || target == float.class)			return new Float(value);		else if (target == Integer.class || target == int.class) {			IntegerValue v = (IntegerValue) convertTo(Type.INT);			return new Integer((int) v.getValue());		} else if (target == Short.class || target == short.class) {			IntegerValue v = (IntegerValue) convertTo(Type.SHORT);			return new Short((short) v.getValue());		} else if (target == Byte.class || target == byte.class) {			IntegerValue v = (IntegerValue) convertTo(Type.BYTE);			return new Byte((byte) v.getValue());		} else if (target == String.class)			return getStringValue();		else if (target == Boolean.class)			return Boolean.valueOf(effectiveBooleanValue());		else if (target == Object.class)			return new Double(value);		throw new XPathException(			"cannot convert value of type "				+ Type.getTypeName(getType())				+ " to Java object of type "				+ target.getName());	}