How to get ITypeBinding of HashMap in JDT without parsing code

21 Views Asked by At

I need to get class binding ITypeBinding of Java library classes (such as HashMap) before parsing code with JDT parser.

Is it possible and how?

I expect solution that correspond to following pseudo code:

ITypeBinding hashMapLibraryType = JDT.resolveTypeBinding(HashMap.class);

I've looked to org.eclipse.jdt.internal.compiler.lookup but it's methods require scope to work with and I don't know where to get such scopes in my case when I have no code parsed.

0

There are 0 best solutions below