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-tp4480402... Sent from the Squeak - Beginners mailing list archive at Nabble.com.
just call AClass allSelectors AClass is a class you want to get selector list.
- Jin-oh - 2012. 3. 17. 오후 8:10에 "deejay220989" delacroix22@gmail.com님이 작성:
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-tp4480402...
Sent from the Squeak - Beginners mailing list archive at Nabble.com. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
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" delacroix22@gmail.com님이 작성:
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-tp4480402... Sent from the Squeak - Beginners mailing list archive at Nabble.com. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
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" delacroix22@gmail.com님이 작성:
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-tp4480402... Sent from the Squeak - Beginners mailing list archive at Nabble.com. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org