Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-423

Add support for instanceof / !instanceof

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3
    • 3.4.0
    • None

    Description

      The instanceof operator allows to check whether an object belongs to a certain class.
      It is using Class.isInstance to perform the check. As a convenience, {{ !instanceof }} is supported as well avoiding parenthesis as in:

      x !instanceof y

      is equivalent to

       !(x instanceof y)

      Attachments

        Activity

          People

            henrib Henri Biestro
            henrib Henri Biestro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: