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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:26:11+00:00 2026-05-23T15:26:11+00:00

Is anyone aware of any methodology to try and determine the method and instance

  • 0

Is anyone aware of any methodology to try and determine the method and instance variable dependencies that exact for a single method in an object oriented class? For example, if I have the following code:

public class Foo {
   private int x;
   private int y;

   public Foo() {
      x = 1;
      y = 2;
   }

   public void doFoo() {
      doJaa(x);
      x++;      
   }

   private void doJaa(int xVar) {
      System.out.println("x is: " + xVar);
   }

   private void nop() {
      System.out.println("Nada!");
   }
}

What I was looking to do was to take a method, say method ‘doFoo’ and determine all of its instance variable and method dependencies (I would like to determine these dependencies at build-time). In this case, those dependencies would be ‘int x’, ‘Foo()’ and ‘doJaa(int x)’. There are no dependencies between method ‘nop’ and ‘doJaa’ however. Is there a name for this type of analysis, just so I can search for more information around it? I am aware of the following analysis techniques

  1. Control flow graph (No use to me)
  2. Program Dependence graph
  3. System Dependence graph

1 isn’t much use to me as it’s concerned with control flow. 2 is concerned with control and data dependencies either within a single method or across method boundaries. I have researched this and it isn’t really what I want as it’s too granular. 3 is a follow on from 2 and again is way too granular for what I need.

  • 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-23T15:26:11+00:00Added an answer on May 23, 2026 at 3:26 pm

    I know only one tool JDepend: http://www.clarkware.com/software/JDepend.html

    But I doubt it works on one method basics. if it does not help you you need to implement your own logic probably using byte-code manipulation (engineering) library.

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

Sidebar

Related Questions

Is anyone aware of any method (or external plugin) that would allow for nested
Is anyone aware of any tricks or object order that will modify the custom
Is anyone aware of any lock-free skiplist implimentations and/or research papers that support the
Is anyone aware of any links, papers, presentations, or blog posts that describe a
By any chance is anyone aware of a Perl module that will allow a
Is anyone aware of any implemented algorithms/programs that could fall under the category of
Is anyone aware of any sample or open-source code that does this? Or a
Are anyone aware of any method to achieve indentation in the ASPXGridView (we are
Is anyone aware of any API's that implement an imap watcher? I.e which keeps
Is anyone aware of any example projects that demonstrate creating a custom Soft Input

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.