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 259243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:14:52+00:00 2026-05-11T22:14:52+00:00

Which static analysis tools for Java has easiest extension mechanism. I checked PMD But

  • 0

Which static analysis tools for Java has easiest extension mechanism. I checked PMD
But the process of writing custom rules appears to be very involved.
Specifically, I want to know whether there is any tools that offers AspectJ like syntax for picking out interesting areas of code? I am aware of AspectJ’s declare warning but it appears to be limited in what it can do.

I have found a related question:

Static Analysis tool recommendation for Java?
Static Analysis tool recommendation for Java?

The answers list many tools. But I want to find which one offers easiest option for writing custom rules.

Edit: So far PMD’s XPath expressions suggested by Guillaume appears to be closest to what I am looking for. I will be exploring it shortly.

  • 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-11T22:14:52+00:00Added an answer on May 11, 2026 at 10:14 pm

    The real problem with “extending” a static analysis tool is “static analysis” is such a broad topic that that you need lots of machinery to do it in general: parsing, tree building, control flow graph extraction, data flow extraction, points-to analysis, interprocedural analysis, range analysis, the list goes on and on, see the tons of compiler literature on analyzing programs.

    You might use pattern matching of surface syntax to focus the tool’s attention on some program code, but you’ll still have
    to explain to the tool what you want it to “statically analyze” at that point
    (and some analyses [such as points-to] require you do the analysis everywhere
    first, and then just pick out the part you want).

    Moral: don’t expect extending a tool to do arbitrary analysis to be easy.
    You should basically decide what kinds of analysis you care about in advance
    (tainted inputs? subscript range checks? API abuse?) and find a tool that
    already supports that kind of thing. At least then your “extensions” have
    a chance of being simple by virtue of being similar to what the tool already does.

    Our DMS Software Reengineering Toolkit is an attempt to amortize the cost of building all kinds of analysis machinery across many applications and langauges.
    It provides the parsing, control/dataflow analysis and points-to analysis
    to varying degrees for C, C++, Java and COBOL. And it has surface-syntax
    pattern matching to help you “point”.
    See http://www.semanticdesigns.com/Products/DMS/DMSToolkit.html

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

Sidebar

Ask A Question

Stats

  • Questions 121k
  • Answers 121k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You could use a the modal view controller, which by… May 12, 2026 at 12:24 am
  • Editorial Team
    Editorial Team added an answer Local variables in that method will be per-call. I presume… May 12, 2026 at 12:24 am
  • Editorial Team
    Editorial Team added an answer Which edition of NetBeans did you install? Did you install… May 12, 2026 at 12:24 am

Related Questions

We're in an early stage of a new web project. The project will grow
We are introducing static analysis tools into the build system for our Java product.
There exist static analysis tools for Python , but compile time checks tend to
I just fixed a memory leak caused by someone forgetting to call the superclass's

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.