[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: how can I retrieve the real modifiers of a java method ?

Adriana,

You could read the class file that is produced. See org.eclipse.jdt.core.util.IClassFileReader and org.eclipse.jdt.core.ToolFactory.

jkca

Adriana Nitescu wrote:
Hello,
Is IMemeber.getFlags() the method to use to retrieve the access modifiers
for a method ?Because the result is not always complete :
Note that only flags as indicated in the source are returned. Thus if an
interface defines a method void myMethod(); the flags don't include the
'public' flag.
Is there a way to get the real value of those modifiers ?
ThanksAdriana