Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] How get the type of the field from IField instance

My guess would be org.eclipse.jdt.core.IField.getTypeSignature() is like org.eclipse.jdt.core.IMethod.getReturnType(), both of which yeild the type signature according to their Javadoc.

On 30.12.2020 10:59, Gayan Perera wrote:
Hi Friends,

I'm working on an autocompletion plugin for method reference proposals. In the implementation i would like to get the type of the field represented by a IField instance. For IMethod there is a getter which returns the Method return type, But for IField i couldn't find such a getter which returns the type of field. Please let me know if there is a way to get an IType instance for the field type.

Best regards,
Gayan.

_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev

Back to the top