public boolean isOne(Type type) {
		if (type instanceof IntegerType) {
			return (value instanceof Integer && ((Integer) value).intValue() == 1);
		} else if (type == Type.tLong) {
			return (value instanceof Long && ((Long) value).longValue() == 1L);
		} else if (type == Type.tFloat) {
			return (value instanceof Float && ((Float) value).floatValue() == 1.0f);
		} else if (type == Type.tDouble) {
			return (value instanceof Double && ((Double) value).doubleValue() == 1.0);
		}
		return false;
	}