Skip to content

Interface IntegralExpr

Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.

All Superinterfaces:
Expr, NumericExpr
All Known Subinterfaces:
DynExpr, IntExpr
All Known Implementing Classes:
DynField, IntField
public sealed interface IntegralExpr extends NumericExpr permits IntExpr, DynExpr
An expression that integer arithmetic and logic take: an integer or a dynamic value.
  • Method Details

    • plus

      default IntExpr plus(IntegralExpr other)
      Returns this + other.
      Parameters:
      other - the right operand
      Returns:
      this + other
    • plus

      default IntExpr plus(long other)
      Returns this + other.
      Parameters:
      other - the right operand
      Returns:
      this + other
    • minus

      default IntExpr minus(IntegralExpr other)
      Returns this - other.
      Parameters:
      other - the right operand
      Returns:
      this - other
    • minus

      default IntExpr minus(long other)
      Returns this - other.
      Parameters:
      other - the right operand
      Returns:
      this - other
    • times

      default IntExpr times(IntegralExpr other)
      Returns this * other.
      Parameters:
      other - the right operand
      Returns:
      this * other
    • times

      default IntExpr times(long other)
      Returns this * other.
      Parameters:
      other - the right operand
      Returns:
      this * other
    • div

      default IntExpr div(IntegralExpr other)
      Returns this / other, rounding toward zero.
      Parameters:
      other - the right operand
      Returns:
      this / other, rounding toward zero
    • div

      default IntExpr div(long other)
      Returns this / other, rounding toward zero.
      Parameters:
      other - the right operand
      Returns:
      this / other, rounding toward zero
    • mod

      default IntExpr mod(IntegralExpr other)
      Returns this % other, which has the sign of this.
      Parameters:
      other - the right operand
      Returns:
      this % other, which has the sign of this
    • mod

      default IntExpr mod(long other)
      Returns this % other, which has the sign of this.
      Parameters:
      other - the right operand
      Returns:
      this % other, which has the sign of this
    • pow

      default IntExpr pow(IntegralExpr other)
      Returns this ^ other.
      Parameters:
      other - the right operand
      Returns:
      this ^ other
    • pow

      default IntExpr pow(long other)
      Returns this ^ other.
      Parameters:
      other - the right operand
      Returns:
      this ^ other
    • and

      default IntExpr and(IntegralExpr other)
      Returns this && other.
      Parameters:
      other - the right operand
      Returns:
      this && other
    • and

      default IntExpr and(long other)
      Returns this && other.
      Parameters:
      other - the right operand
      Returns:
      this && other
    • or

      default IntExpr or(IntegralExpr other)
      Returns this || other.
      Parameters:
      other - the right operand
      Returns:
      this || other
    • or

      default IntExpr or(long other)
      Returns this || other.
      Parameters:
      other - the right operand
      Returns:
      this || other
    • not

      default IntExpr not()
      Returns !this.
      Returns:
      !this