Getting a list of selectors used in a method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting a list of selectors used in a method

deejay220989
Hi,

Is there anyway I get get a list or a number of selectors used in a method? I tried using the compiledMethod literals and compiledMethod numLiterals but they include numbers which I do not want.

It even returns the method and class name. I just want the selectors used in a method.

Please advise.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Getting a list of selectors used in a method

강진오

just call AClass allSelectors
AClass is a class you want to get selector list.

- Jin-oh -
2012. 3. 17. 오후 8:10에 "deejay220989" <[hidden email]>님이 작성:
>
> Hi,
>
> Is there anyway I get get a list or a number of selectors used in a method?
> I tried using the compiledMethod literals and compiledMethod numLiterals but
> they include numbers which I do not want.
>
> It even returns the method and class name. I just want the selectors used in
> a method.
>
> Please advise.
>
> Thanks!
>
> --
> View this message in context: http://forum.world.st/Getting-a-list-of-selectors-used-in-a-method-tp4480402p4480402.html
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Getting a list of selectors used in a method

강진오
In reply to this post by deejay220989

Call selector to CompiledMethod.

ACompiledMethod selector

ACompiledMethod is A CompiledMethod you want to get selector.

The literals are just descriptor of bytecodes. So surely they don't contain the selector, of course :)

- Jin-oh -

2012. 3. 17. 오후 8:10에 "deejay220989" <[hidden email]>님이 작성:
Hi,

Is there anyway I get get a list or a number of selectors used in a method?
I tried using the compiledMethod literals and compiledMethod numLiterals but
they include numbers which I do not want.

It even returns the method and class name. I just want the selectors used in
a method.

Please advise.

Thanks!

--
View this message in context: http://forum.world.st/Getting-a-list-of-selectors-used-in-a-method-tp4480402p4480402.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Getting a list of selectors used in a method

강진오
In reply to this post by deejay220989

Oh, my two replys were not the answers. Just filter non-symbols to get symbol literals. But you can decompile it to get all selectors, not symbols.

- Jin-oh -

2012. 3. 17. 오후 8:10에 "deejay220989" <[hidden email]>님이 작성:
Hi,

Is there anyway I get get a list or a number of selectors used in a method?
I tried using the compiledMethod literals and compiledMethod numLiterals but
they include numbers which I do not want.

It even returns the method and class name. I just want the selectors used in
a method.

Please advise.

Thanks!

--
View this message in context: http://forum.world.st/Getting-a-list-of-selectors-used-in-a-method-tp4480402p4480402.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners