Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1726

Expression parser support for bit operators, support for << and >>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.M1
    • Core Library
    • None

    Description

      Building upon CAY-1693, let's create support for bit operations in String expressions. Parser BNF [1] need to be expanded to include &, |, ^, ~, hence allowing creation of these expressions via 'Expression.fromString(..)". Some examples of how those might look like:

      someProperty & 3 = 1
      someOtherProperty | 1 = 0
      someOtherProperty ^ 1 = 0
      ~yetAnotherProperty = 1
      someProperty & ~yetAnotherProperty = 1

      [1] http://cayenne.apache.org/doc/bnf-for-expressionparser.html

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: