开发者

how can i get the class name?

开发者 https://www.devze.com 2022-12-20 05:01 出处:网络
i have an instance of IMethod type. i want to get the class name from it. How can i do that .开发者_如何学运维...helpI haven\'t used the Eclipse API, but it looks like you should call getDeclaringType

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

精彩评论

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

关注公众号