Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] Resolving TypeBindings with type key

Hi All,

I'm trying to implement a completion computer for suggesting matching method references for functional interface.

public void test(Predicate<String> p) {}

For that i'm using the expected type key from the invocation context. But now the problem is even though i have the key with type arguments which is resolved, when i try to find the method name with resolved type argument i cannot do that. Because to load the IType from project i have to remove type arguments, the resulting IType doesn't contains any type argument details.

I think what i need is a ITypeBinding, is there a way that i can resolve a ITypeBinding for the type key i have with type arguments ?

Best regards,

Back to the top