Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6926011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:51:49+00:00 2026-05-27T10:51:49+00:00

I need to evaluate a boolean expression. The purpose is to filter a set

  • 0

I need to evaluate a boolean expression.
The purpose is to filter a set of tagged items.
Tag can be any name (let’s say, like Java identifier).

For example:

foo OR (bar AND !baz)

This would be true for items tagged:

  • foo fee
  • foo bar boo
  • bar

I don’t know in advance which names will be needed.
I’ve checked JEXL but it has JexlContext, which is basically a Map which needs to be filled prior to evaluation.

I need some library which calls a callback function to decide whether an identifier is true or false. Or any other mechanism to allow identifiers unknown prior to evaluation.

It has to be free as in beer (it’s for a Maven plugin), so Jep is out of question.

What can I use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:51:50+00:00Added an answer on May 27, 2026 at 10:51 am

    You can provide an implementation of JexlContext that does not rely on a Map. Instead of filling it before evaluation, you can treat its checks for has, get as your callbacks, and ignore the calls to set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Python eval is quite slow. I need to evaluate simple boolean expression with logical
I need to evaluate a mathmatical expression that is presented to me as a
Say i have a string that i need to evaluate in javascript such as
I need to evaluate an xpath expression without knowing its return value in advance.
How can this be true? 0 <= 14 < 10 I need to evaluate
I need to evaluate a Python expression from C++. This code seems to work:
we need to evaluate a value in an object in run time while we
I need to evaluate and dig more into the use of Remote Procedure Call
I have a need to evaluate user-defined logical expressions of arbitrary complexity on some
I have a 15-day trial of Mathematica and need to evaluate it, and see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.