Dynamic Java Objects Access

Discussion in 'Java' started by ash, Mar 15, 2008.

  1. ash

    ash Guest

    Hello ,

    I would like to access a running object's all kind of information
    ( methods, fields, class name, local variables, while loops, for
    loops ,.... etc) basicly it's entire structure.
    I tried solving this problem by parsing the Class to Absract syntax
    tree's and then see where to go next. but in order to do that i wanted
    to use the new Java Compiler API and there is very little
    documentation with it.

    So i would greatly appreciate it if anyone would tell me an API that
    would solve this problem.


    Thanks


    Ahmed Ashmawy
    ash, Mar 15, 2008
    #1
    1. Advertising

  2. ash

    Chris Guest

    ash wrote:
    > Hello ,
    >
    > I would like to access a running object's all kind of information
    > ( methods, fields, class name, local variables, while loops, for
    > loops ,.... etc) basicly it's entire structure.
    > I tried solving this problem by parsing the Class to Absract syntax
    > tree's and then see where to go next. but in order to do that i wanted
    > to use the new Java Compiler API and there is very little
    > documentation with it.
    >
    > So i would greatly appreciate it if anyone would tell me an API that
    > would solve this problem.


    Google the term "java reflection". You'll find plenty.
    Chris, Mar 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steven T. Hatton

    C++ objects that act like Java/C# objects.

    Steven T. Hatton, Jun 27, 2005, in forum: C++
    Replies:
    8
    Views:
    346
    Steven T. Hatton
    Jun 28, 2005
  2. 7stud
    Replies:
    11
    Views:
    674
    Dennis Lee Bieber
    Mar 20, 2007
  3. Greg Hoover
    Replies:
    1
    Views:
    479
    Robert Bossy
    Mar 25, 2008
  4. Steve Drach
    Replies:
    3
    Views:
    205
    Thomas E Enebo
    Jun 20, 2004
  5. Replies:
    8
    Views:
    295
    Jorgen Grahn
    May 16, 2013
Loading...

Share This Page