List of usage examples for org.eclipse.jdt.internal.compiler.util HashtableOfIntValues NO_VALUE
int NO_VALUE
To view the source code for org.eclipse.jdt.internal.compiler.util HashtableOfIntValues NO_VALUE.
Click Source Link
From source file:com.codenvy.ide.ext.java.server.internal.core.search.matching.MemberDeclarationVisitor.java
License:Open Source License
public boolean visit(TypeDeclaration typeDeclaration, BlockScope unused) { try {/* w w w . j a va 2 s. co m*/ char[] simpleName; if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) { simpleName = CharOperation.NO_CHAR; } else { simpleName = typeDeclaration.name; } int occurrenceCount = this.occurrencesCounts.get(simpleName); if (occurrenceCount == HashtableOfIntValues.NO_VALUE) { occurrenceCount = 1; } else { occurrenceCount = occurrenceCount + 1; } this.occurrencesCounts.put(simpleName, occurrenceCount); if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) { this.locator.reportMatching(typeDeclaration, this.enclosingElement, -1, this.nodeSet, occurrenceCount); } else { Integer level = (Integer) this.nodeSet.matchingNodes.removeKey(typeDeclaration); this.locator.reportMatching(typeDeclaration, this.enclosingElement, level != null ? level.intValue() : -1, this.nodeSet, occurrenceCount); } return false; // don't visit members as this was done during reportMatching(...) } catch (CoreException e) { throw new MatchLocator.WrappedCoreException(e); } }