List of usage examples for org.eclipse.jdt.core.dom IPackageBinding getKey
public String getKey();
From source file:lang.java.jdt.internal.BindingConverter.java
License:Open Source License
private IList getIds(IPackageBinding pb) { String key = pb.getKey(); IList l = idStore.get(key);//ww w.j av a 2s .co m if (l == null) { l = importPackageBinding(pb); idStore.put(key, l); } return l; }
From source file:org.eclipse.imp.analysis.type.constraints.bindings.EclipseJavaDOMBindingFactory.java
License:Open Source License
@Override public BindingKey createKeyForPackage(Object pkg) { IPackageBinding pkgBinding = (IPackageBinding) pkg; return new StringBindingKey(pkgBinding.getKey()); }
From source file:org.MyPackage.BindingsResolver.java
License:Open Source License
private ISourceLocation resolveBinding(IPackageBinding binding) { if (binding == null) { return convertBinding("unresolved", null, null); }/*from w ww .j ava 2 s .c o m*/ if (EclipseJavaCompiler.cache.containsKey(binding.getKey())) return EclipseJavaCompiler.cache.get(binding.getKey()); ISourceLocation result = convertBinding("java+package", null, binding.getName().replaceAll("\\.", "/")); EclipseJavaCompiler.cache.put(binding.getKey(), result); return result; }
From source file:org.rascalmpl.library.lang.java.m3.internal.BindingsResolver.java
License:Open Source License
private ISourceLocation resolveBinding(IPackageBinding binding) { if (binding == null) { return makeBinding("unresolved", null, null); }/* w ww . j av a 2 s . co m*/ if (locationCache.containsKey(binding.getKey())) return locationCache.get(binding.getKey()); ISourceLocation result = makeBinding("java+package", null, binding.getName().replaceAll("\\.", "/")); locationCache.put(binding.getKey(), result); return result; }