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.
精彩评论