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

Related Questions

Are there any, free, tools which allow incremental static analysis of code (for SVN
I am writing a static analysis tool for an assignment, it analyses Java bytecode
Are there any open-source tools or libraries for static code analysis of simple custom
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'm interested in the existence of any tools which can perform static analysis against
I am not asking the static code analysis which is provided by StyleCop or
I have a class with static method which has a local static variable. I
I am interested in static analysis tools that are out there. Or rather the
I am building a prototype of a static analysis tool, for which I intend

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.