Hi, the signature description is the internal representation used in Java class files <https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.3>. You can use libraries like ASM <https://asm.ow2.io/> (see Type <https://asm.ow2.io/javadoc/org/objectweb/asm/Type.html> class) to parse these descriptors.
Also JaCoCo implements such a mapping to create Java source like methods declarations in the HTML report, see JavaNames <https://github.com/jacoco/jacoco/blob/master/org.jacoco.report/src/org/jacoco/report/JavaNames.java>. But your second example desc="Ljava/lang/String;Z”> does not look like a valid method descriptor (parenthesis missing). Was this XML snipped generated by JaCoCo? Regards, -marc > On 18. May 2020, at 12:36, sainathco...@gmail.com wrote: > > <method name="invoke" > > desc="(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;"> > > > I am in need to get fully qualified method name (along with parameters) from > the report > for the same task I have written a parser which would pick up package / class > / method name and build a fully qualified method name > > > But I am running into one small blocker here > For the name of the method I can get it from name , to get the method > parameters I thought of making use of desc tag but they seem to come along > with type signatures for primitives (see. I, V and L reference > <https://stackoverflow.com/questions/38079081/l-z-and-v-in-java-method-signature>) > > Given that I have a method's desc > > <method name="setFeature" > desc="Ljava/lang/String;Z"> > > I would only want to get setFeature(java.lang.String) > > > Please suggest me how to accomplish the same > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jacoco+unsubscr...@googlegroups.com > <mailto:jacoco+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/9de8bd30-a547-480a-9419-468a018294c2%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/9de8bd30-a547-480a-9419-468a018294c2%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/747AC7E1-5905-4CDC-800B-A23E22141B64%40mountainminds.com.