Home > Community > Forums > Functional Verification > help with reflection

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 help with reflection 

Last post Fri, Mar 22 2013 11:52 AM by myonlyscreen. 2 replies.
Started by myonlyscreen 21 Mar 2013 01:33 AM. Topic has 2 replies and 799 views
Page 1 of 1 (3 items)
Sort Posts:
  • Thu, Mar 21 2013 1:33 AM

    help with reflection Reply

     Hi all

    I am looking for a way to get all the local variables within a specific method.

    i didn't find an API function in rf_method  struct that do such operation.

    i will happy if some one can show me how it is done.

    Regards.

    EM

     

    Filed under: ,
    • Post Points: 20
  • Thu, Mar 21 2013 2:17 AM

    • hannes
    • Top 150 Contributor
    • Joined on Fri, Nov 14 2008
    • Bracknell, Berkshire
    • Posts 43
    • Points 785
    Re: help with reflection Reply

    Hello EM,

    reflection reports on static elements of your code (structs, types, fields, methods, constraints etc.). Method variables don't exist statically, they only 'come to life' when the method is active (executing). There is also no list of all variables of a method, since variables can be defined locally in actions (e.g. in a for loop). The execution point of a method, the scope in a method etc. are very hard to pin down, hence it is very difficult to provide a reliable and clear API for users. So at the moment reflection can not be used to find variables of a method. (for similar reasons actions of a method are also not reported).

    Regards,
    -hannes 

    Filed under: , ,
    • Post Points: 20
  • Fri, Mar 22 2013 11:52 AM

    Re: help with reflection Reply

    Hannes Hi

    Thanks for you quick and detailed response.

    Regards.

    E.M.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by myonlyscreen at 21 Mar 2013 01:33 AM. Topic has 2 replies.