开发者

how can i get the class name?

i have an instance of IMethod type. i want to get the class name from it. How can i do that .开发者_如何学运维...help


I haven't used the Eclipse API, but it looks like you should call getDeclaringType() to get an IType. You can then call getElementName(), getFullyQualifiedName() etc depending on your requirements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜