diff options
author | Alex Light <allight@google.com> | 2020-09-08 14:41:09 -0700 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2020-09-11 00:14:30 +0000 |
commit | 630e447bc8c25aedc5619248028da4583c141938 (patch) | |
tree | 805d7da70da66b4aa38770e9f4c2ee108f312a7f /test/ProfileTestMultiDex/Main.java | |
parent | 227b23b96070e4f98776ec92ad6aabf4aaa051b2 (diff) |
Add a tool for transforming method names to descriptors
Our various tools are not very consistent about using method
descriptor or names. Make a tool similar to c++filt that can transform
between them.
Currently this tool can only function when the line contains nothing
but the symbol so it's somewhat less useful then c++filt but it still
has some uses
Example:
```
% echo 'La/b/c;->foobar(IJ[[Ljava/lang/Long;)V' | ./tools/method-to-descriptor.py -r
void a.b.c.foobar(int,long,java.lang.Long[][])
% echo 'void my.awesome.parrot.says(java.lang.String,int[][][])' | ./tools/method-to-descriptor.py
Lmy/awesome/parrot;->says(Ljava/lang/String;[[[I)V
```
Test: manual
Change-Id: I2ea99cf7ad2c2934352780842933b8109f7da9f1
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions