我在 cobertura.xml 中有以下信息
<method name="visitNode"
signature="(Lchs/cof/drawplus/IJoint;Lchs/cof/logical/schem/ISegment;Lchs/analysis/GraphServices$IGraphVisitor;I)Z"
签名是 java 的方法名称。 ( http://asm.ow2.org/doc/faq.html#Q7 )
如何构建方法参数列表,如下所示。
boolean visitNode(drawplus.IJoint root,
schem.ISegment segmentBefore,
IGraphVisitor visitor,
int branch)
是否有一个库可以进行这种 de-mangling?
最佳答案
这里重现了重整规则,因为这个问题在该主题的搜索结果中出现的频率很高。以下详细信息来自原始问题中的链接。
原始表示:
-
V
-void
-
Z
-boolean
-
C
-char
-
B
-byte
-
S
-short
-
I
-int
-
F
-float
-
J
-long
-
D
-double
类表示:
-
L<class>;
-
Ljava/io/ObjectOutput;
-
Ljava/lang/String;
关于java - 如何从损坏的名称中获取方法参数列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8339376/