List of usage examples for org.eclipse.jdt.internal.compiler.lookup Binding computeUniqueKey
public char[] computeUniqueKey()
From source file:com.codenvy.ide.ext.java.server.internal.core.BinaryField.java
License:Open Source License
public JavaElement resolved(Binding binding) { SourceRefElement resolvedHandle = new ResolvedBinaryField(this.parent, this.manager, this.name, new String(binding.computeUniqueKey())); resolvedHandle.occurrenceCount = this.occurrenceCount; return resolvedHandle; }
From source file:com.codenvy.ide.ext.java.server.internal.core.BinaryMethod.java
License:Open Source License
public JavaElement resolved(Binding binding) { SourceRefElement resolvedHandle = new ResolvedBinaryMethod(this.parent, this.manager, this.name, this.parameterTypes, new String(binding.computeUniqueKey())); resolvedHandle.occurrenceCount = this.occurrenceCount; return resolvedHandle; }
From source file:com.codenvy.ide.ext.java.server.internal.core.BinaryType.java
License:Open Source License
public JavaElement resolved(Binding binding) { SourceRefElement resolvedHandle = new ResolvedBinaryType(this.parent, this.manager, this.name, new String(binding.computeUniqueKey())); resolvedHandle.occurrenceCount = this.occurrenceCount; return resolvedHandle; }
From source file:com.codenvy.ide.ext.java.server.internal.core.SourceField.java
License:Open Source License
public JavaElement resolved(Binding binding) { SourceRefElement resolvedHandle = new ResolvedSourceField(this.parent, this.name, new String(binding.computeUniqueKey())); resolvedHandle.occurrenceCount = this.occurrenceCount; return resolvedHandle; }
From source file:com.codenvy.ide.ext.java.server.internal.core.SourceMethod.java
License:Open Source License
public JavaElement resolved(Binding binding) { SourceRefElement resolvedHandle = new ResolvedSourceMethod(this.parent, this.name, this.parameterTypes, new String(binding.computeUniqueKey())); resolvedHandle.occurrenceCount = this.occurrenceCount; return resolvedHandle; }
From source file:com.codenvy.ide.ext.java.server.internal.core.SourceType.java
License:Open Source License
public JavaElement resolved(Binding binding) { ResolvedSourceType resolvedHandle = new ResolvedSourceType(this.parent, this.name, new String(binding.computeUniqueKey())); resolvedHandle.occurrenceCount = this.occurrenceCount; resolvedHandle.localOccurrenceCount = this.localOccurrenceCount; return resolvedHandle; }
From source file:org.eclipse.objectteams.otdt.internal.core.MethodMapping.java
License:Open Source License
public OTJavaElement resolved(Binding binding) { char[] uniqueKey = binding.computeUniqueKey(); if (uniqueKey == null) throw new AbortCompilation(); // better than NPE below return resolved(uniqueKey); }
From source file:org.eclipse.recommenders.internal.chain.rcp.ChainCompletionProposalComputer.java
License:Open Source License
private void resolveEntrypoints(final ObjectVector elements, final Set<String> localVariableNames) { for (int i = elements.size(); i-- > 0;) { final Binding decl = (Binding) elements.elementAt(i); if (!matchesPrefixToken(decl)) { continue; }//from w ww . j a v a 2 s .co m final String key = String.valueOf(decl.computeUniqueKey()); if (key.startsWith("Ljava/lang/Object;")) { //$NON-NLS-1$ continue; } boolean requiresThis = false; if (decl instanceof FieldBinding) { requiresThis = localVariableNames.contains(Arrays.toString(((FieldBinding) decl).name)); } final ChainElement e = new ChainElement(decl, requiresThis); if (e.getReturnType() != null) { entrypoints.add(e); } } }
From source file:org.eclipse.recommenders.internal.chain.rcp.ChainFinder.java
License:Open Source License
private boolean isFromExcludedType(final Binding binding) { final String key = StringUtils.substringBefore(String.valueOf(binding.computeUniqueKey()), ";"); //$NON-NLS-1$ return excludedTypes.contains(key); }