Results 1 to 6 of 6

Thread: BCEL Tutorial

  1. #1
    Astrid is offline Member
    Join Date
    May 2012
    Posts
    5
    Rep Power
    0

    Default BCEL Tutorial

    Hi,

    I am new to BCEL and I am asked to build a Java Byte code browser with Byte Code Engineering Library.
    I am looking for BCEL tutorial and examples, can somebody help?

    Thanks,

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,734
    Blog Entries
    7
    Rep Power
    21

    Default Re: BCEL Tutorial

    Did you try Google? I did and it gave me a couple of links to tutorials ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Astrid is offline Member
    Join Date
    May 2012
    Posts
    5
    Rep Power
    0

    Default Re: BCEL Tutorial

    Hi, I am using BCEL to read my .class files,
    and for a given class A, I want to display the imported classes,
    It means that if class A calls an instance of class B and C, I want to retrieve the name and the parameters of classes B and C from class A,

    Can somebody help?

    Thanks

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,734
    Blog Entries
    7
    Rep Power
    21

    Default Re: BCEL Tutorial

    Quote Originally Posted by Astrid View Post
    Hi, I am using BCEL to read my .class files,
    and for a given class A, I want to display the imported classes,
    It means that if class A calls an instance of class B and C, I want to retrieve the name and the parameters of classes B and C from class A,

    Can somebody help?

    Thanks
    The entire 'import' mechanism is a compiler thingy; all you can do with a compiled class is check if it references another class or classes. You can do that with BCEL because you have access to all the code and classloader directives in the compiled class. Parameters are an issue related to methods and constructors.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    Astrid is offline Member
    Join Date
    May 2012
    Posts
    5
    Rep Power
    0

    Default Re: BCEL Tutorial

    Quote Originally Posted by JosAH View Post
    The entire 'import' mechanism is a compiler thingy; all you can do with a compiled class is check if it references another class or classes. You can do that with BCEL because you have access to all the code and classloader directives in the compiled class. Parameters are an issue related to methods and constructors.

    kind regards,

    Jos
    Do you have any idea of which BCEL's method I can use?

    Kind Regards,

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,453
    Rep Power
    20

    Default Re: BCEL Tutorial

    Quit multiposting. Two moderators have closed two other threads you started, the last one 22 minutes after you posted the same thing at #3 here.

    Continued multiposting may lead to a ban. Please go through the Forum Rules.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. BCEL instruction
    By meteor in forum Advanced Java
    Replies: 0
    Last Post: 02-01-2012, 08:49 PM
  2. Apache Bcel
    By axenos in forum Advanced Java
    Replies: 0
    Last Post: 03-06-2011, 03:46 PM
  3. tutorial
    By ayangupta in forum Threads and Synchronization
    Replies: 1
    Last Post: 03-01-2009, 07:38 PM
  4. Tutorial?
    By Gudradain in forum Java Software
    Replies: 24
    Last Post: 01-09-2009, 04:22 AM
  5. tutorial help
    By yuriythebest in forum Java Applets
    Replies: 1
    Last Post: 11-12-2008, 05:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •