Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By wsaryada

Thread: Help - Reflection API

  1. #1
    joshendy is offline Member
    Join Date
    Apr 2012
    Rep Power

    Default Help - Reflection API


    I'm a student from New Zealand, in my final year of my studies for my degree. My university however has some really useless tutors and I've found myself in a Java class with a tutor that can't teach.

    My first assignment marked a huge jump from the basics right into the more advanced parts of Java without any real lead up to it. I'm here hoping to get some help.

    The task I'm required to do is:

    Use the reflection API to generate .java source files from the .class file of any class. The class must:

    1. Be a derived class
    2. Contain a reference to an instance of another user-defined class
    3. Implement an interface
    4. Use a collection class

    Your application should generate the java source files in a seperate folder and produce an exact copy of the original java files excluding the method bodies that cannot be deduced from the name of the method.

    I'm fine with the creating the class but in terms of using the reflection API, I have no idea. So if anyone could help me out with the above question or point me in the right direction that would be great.


  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Bali, Indonesia
    Rep Power

Similar Threads

  1. Reflection
    By minama in forum Advanced Java
    Replies: 7
    Last Post: 01-09-2012, 06:42 PM
  2. Reflection
    By akki in forum Advanced Java
    Replies: 6
    Last Post: 05-04-2011, 08:02 AM
  3. reflection
    By rfabbri in forum Advanced Java
    Replies: 3
    Last Post: 12-07-2010, 08:55 AM
  4. how to use reflection
    By sunilpatel28 in forum Advanced Java
    Replies: 1
    Last Post: 12-10-2008, 10:51 PM
  5. Array Reflection: Multi Array Reflection
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 08:08 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