Examples of neg()


Examples of org.jooq.types.DayToSecond.neg()

            i.call("getMinutes").<Integer>get(),
            seconds.intValue(),
            (int) (1000000000 * (seconds - seconds.intValue())));

        if (negative) {
            result = result.neg();
        }

        return result;
    }

View Full Code Here

Examples of org.jooq.types.Interval.neg()

                case CUBRID:
                case MYSQL: {
                    Interval interval = rhsAsInterval();

                    if (operator == SUBTRACT) {
                        interval = interval.neg();
                    }

                    if (rhs.get(0).getType() == YearToMonth.class) {
                        return field("{date_add}({0}, {interval} {1} {year_month})", getDataType(), lhs, val(interval, String.class));
                    }
View Full Code Here

Examples of org.jooq.types.Interval.neg()

                case MARIADB:
                case MYSQL: {
                    Interval interval = rhsAsInterval();

                    if (operator == SUBTRACT) {
                        interval = interval.neg();
                    }

                    if (rhs.get(0).getType() == YearToMonth.class) {
                        return field("{date_add}({0}, {interval} {1} {year_month})", getDataType(), lhs, Utils.field(interval, String.class));
                    }
View Full Code Here

Examples of org.jooq.types.Interval.neg()

                case SQLITE: {
                    boolean ytm = rhs.get(0).getType() == YearToMonth.class;
                    Field<?> interval = val(ytm ? rhsAsYTM().intValue() : rhsAsDTS().getTotalSeconds());

                    if (sign < 0) {
                        interval = interval.neg();
                    }

                    interval = interval.concat(inline(ytm ? " months" : " seconds"));
                    return field("{datetime}({0}, {1})", getDataType(), lhs, interval);
                }
View Full Code Here

Examples of org.jooq.types.YearToMonth.neg()

        YearToMonth result = new YearToMonth(
            i.call("getYears").<Integer>get(),
            i.call("getMonths").<Integer>get());

        if (negative) {
            result = result.neg();
        }

        return result;
    }
View Full Code Here

Examples of org.jooq.types.YearToMonth.neg()

        YearToMonth result = new YearToMonth(
            i.call("getYears").<Integer>get(),
            i.call("getMonths").<Integer>get());

        if (negative) {
            result = result.neg();
        }

        return result;
    }
View Full Code Here

Examples of org.luaj.vm2.LuaValue.neg()

      break;
    case OP_POW:
      r = v1.pow(v2);
      break;
    case OP_UNM:
      r = v1.neg();
      break;
    case OP_LEN:
      // r = v1.len();
      // break;
      return false; /* no constant folding for 'len' */
 
View Full Code Here

Examples of zz.jinterp.JPrimitive.JNumber.neg()

      case INEG:
      case LNEG:
      case FNEG:
      case DNEG: {
        JNumber n = (JNumber) pop();
        push(n.neg());
      } break;
       
      case ISHL:
      case LSHL: {
        JInt n2 = (JInt) pop();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.