Class ModExpression

  • All Implemented Interfaces:
    Expression

    public final class ModExpression
    extends AbstractDoubleEncapsulatedExpression
    The modulo operation finds the remainder of division of one number by another.

    It takes two integer arguments and returns an integer.

    JPA 1.0, 2.0:

    BNF: expression ::= MOD(simple_arithmetic_expression, simple_arithmetic_expression)

    JPA 2.1:

    BNF: expression ::= MOD(arithmetic_expression, arithmetic_expression)

    Version:
    2.5
    Author:
    Pascal Filion
    Since:
    2.3
    • Constructor Detail

      • ModExpression

        public ModExpression​(AbstractExpression parent)
        Creates a new ModExpression.
        Parameters:
        parent - The parent of this expression