Java Code Examples for org.eclipse.jdt.internal.compiler.lookup.Binding#computeUniqueKey()

The following examples show how to use org.eclipse.jdt.internal.compiler.lookup.Binding#computeUniqueKey() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AssistSourceMethod.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 6 votes vote down vote up
public String getKey() {
	if (this.uniqueKey == null) {
		Binding binding = (Binding) this.bindingCache.get(this);
		if (binding != null) {
			this.isResolved = true;
			this.uniqueKey = new String(binding.computeUniqueKey());
		} else {
			this.isResolved = false;
			try {
				this.uniqueKey = getKey(this, false/*don't open*/);
			} catch (JavaModelException e) {
				// happen only if force open is true
				return null;
			}
		}
	}
	return this.uniqueKey;
}
 
Example 2
Source File: AssistSourceType.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 6 votes vote down vote up
public String getKey() {
	if (this.uniqueKey == null) {
		Binding binding = (Binding) this.bindingCache.get(this);
		if (binding != null) {
			this.isResolved = true;
			this.uniqueKey = new String(binding.computeUniqueKey());
		} else {
			this.isResolved = false;
			try {
				this.uniqueKey = getKey(this, false/*don't open*/);
			} catch (JavaModelException e) {
				// happen only if force open is true
				return null;
			}
		}
	}
	return this.uniqueKey;
}
 
Example 3
Source File: AssistSourceField.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 6 votes vote down vote up
public String getKey() {
	if (this.uniqueKey == null) {
		Binding binding = (Binding) this.bindingCache.get(this);
		if (binding != null) {
			this.isResolved = true;
			this.uniqueKey = new String(binding.computeUniqueKey());
		} else {
			this.isResolved = false;
			try {
				this.uniqueKey = getKey(this, false/*don't open*/);
			} catch (JavaModelException e) {
				// happen only if force open is true
				return null;
			}
		}
	}
	return this.uniqueKey;
}
 
Example 4
Source File: LambdaExpression.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public JavaElement resolved(Binding binding) {
	ResolvedLambdaExpression resolvedHandle = new ResolvedLambdaExpression(this.parent, this, new String(binding.computeUniqueKey()));
	return resolvedHandle;
}
 
Example 5
Source File: SourceType.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
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;
}
 
Example 6
Source File: SourceMethod.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
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;
}
 
Example 7
Source File: BinaryField.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public JavaElement resolved(Binding binding) {
	SourceRefElement resolvedHandle = new ResolvedBinaryField(this.parent, this.name, new String(binding.computeUniqueKey()));
	resolvedHandle.occurrenceCount = this.occurrenceCount;
	return resolvedHandle;
}
 
Example 8
Source File: BinaryType.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public JavaElement resolved(Binding binding) {
	SourceRefElement resolvedHandle = new ResolvedBinaryType(this.parent, this.name, new String(binding.computeUniqueKey()));
	resolvedHandle.occurrenceCount = this.occurrenceCount;
	return resolvedHandle;
}
 
Example 9
Source File: BinaryMethod.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public JavaElement resolved(Binding binding) {
	SourceRefElement resolvedHandle = new ResolvedBinaryMethod(this.parent, this.name, this.parameterTypes, new String(binding.computeUniqueKey()));
	resolvedHandle.occurrenceCount = this.occurrenceCount;
	return resolvedHandle;
}
 
Example 10
Source File: SourceField.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public JavaElement resolved(Binding binding) {
	SourceRefElement resolvedHandle = new ResolvedSourceField(this.parent, this.name, new String(binding.computeUniqueKey()));
	resolvedHandle.occurrenceCount = this.occurrenceCount;
	return resolvedHandle;
}