public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last]); } public boolean hasTypeBit(int bit) {
public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last]); } public boolean hasTypeBit(int bit) {
@Override public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: // (NOTE: this an upper bound, because class names may contain '$') int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last], 1); // leading '$' must be part of the class name, so start at 1. } @Override
public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last]); } public boolean hasTypeBit(int bit) {
public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last]); } public boolean hasTypeBit(int bit) {
public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: // (NOTE: this an upper bound, because class names may contain '$') int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last], 1); // leading '$' must be part of the class name, so start at 1. } public boolean hasTypeBit(int bit) {
public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last]); } public boolean hasTypeBit(int bit) {
public int depth() { // we don't yet have our enclosing types wired, but we know the nesting depth from our compoundName: int last = this.compoundName.length-1; return CharOperation.occurencesOf('$', this.compoundName[last]); } public boolean hasTypeBit(int bit) {
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpleName); if (simpleName == null) this.segments = this.qualification == null ? ONE_STAR_CHAR : CharOperation.splitOn('.', this.qualification); else this.segments = null; if (this.segments == null) if (this.qualification == null) this.segmentsSize = 0; else this.segmentsSize = CharOperation.occurencesOf('.', this.qualification) + 1; else this.segmentsSize = this.segments.length; this.mustResolve = true; // always resolve (in case of a simple name reference being a potential match) } /*
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpleName); if (simpleName == null) this.segments = this.qualification == null ? ONE_STAR_CHAR : CharOperation.splitOn('.', this.qualification); else this.segments = null; if (this.segments == null) if (this.qualification == null) this.segmentsSize = 0; else this.segmentsSize = CharOperation.occurencesOf('.', this.qualification) + 1; else this.segmentsSize = this.segments.length; this.mustResolve = true; // always resolve (in case of a simple name reference being a potential match) } /*
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpleName); if (simpleName == null) this.segments = this.qualification == null ? ONE_STAR_CHAR : CharOperation.splitOn('.', this.qualification); else this.segments = null; if (this.segments == null) if (this.qualification == null) this.segmentsSize = 0; else this.segmentsSize = CharOperation.occurencesOf('.', this.qualification) + 1; else this.segmentsSize = this.segments.length; this.mustResolve = true; // always resolve (in case of a simple name reference being a potential match) } /*
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpleName); if (simpleName == null) this.segments = this.qualification == null ? ONE_STAR_CHAR : CharOperation.splitOn('.', this.qualification); else this.segments = null; if (this.segments == null) if (this.qualification == null) this.segmentsSize = 0; else this.segmentsSize = CharOperation.occurencesOf('.', this.qualification) + 1; else this.segmentsSize = this.segments.length; this.mustResolve = true; // always resolve (in case of a simple name reference being a potential match) } /*
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpleName); if (simpleName == null) this.segments = this.qualification == null ? ONE_STAR_CHAR : CharOperation.splitOn('.', this.qualification); else this.segments = null; if (this.segments == null) if (this.qualification == null) this.segmentsSize = 0; else this.segmentsSize = CharOperation.occurencesOf('.', this.qualification) + 1; else this.segmentsSize = this.segments.length; this.mustResolve = true; // always resolve (in case of a simple name reference being a potential match) } /*
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpleName); if (simpleName == null) this.segments = this.qualification == null ? ONE_STAR_CHAR : CharOperation.splitOn('.', this.qualification); else this.segments = null; if (this.segments == null) if (this.qualification == null) this.segmentsSize = 0; else this.segmentsSize = CharOperation.occurencesOf('.', this.qualification) + 1; else this.segmentsSize = this.segments.length; this.mustResolve = true; // always resolve (in case of a simple name reference being a potential match) } /*
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, char typeSuffix, int matchRule) { this(qualification, simpleName,matchRule); this.typeSuffix = typeSuffix; if (typeSignature != null) { // store type signatures and arguments this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); setTypeArguments(Util.getAllTypeArguments(this.typeSignatures)); if (hasTypeArguments()) { this.segmentsSize = getTypeArguments().length + CharOperation.occurencesOf('/', this.typeSignatures[0]) - 1; } } this.fineGrain = limitTo & 0xFFFFFFF0; if (this.fineGrain == IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE) { this.categories = CATEGORIES_ANNOT_REF; } }
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, char typeSuffix, int matchRule) { this(qualification, simpleName,matchRule); this.typeSuffix = typeSuffix; if (typeSignature != null) { // store type signatures and arguments this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); setTypeArguments(Util.getAllTypeArguments(this.typeSignatures)); if (hasTypeArguments()) { this.segmentsSize = getTypeArguments().length + CharOperation.occurencesOf('/', this.typeSignatures[0]) - 1; } } this.fineGrain = limitTo & 0xFFFFFFF0; if (this.fineGrain == IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE) { this.categories = CATEGORIES_ANNOT_REF; } }
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, char typeSuffix, int matchRule) { this(qualification, simpleName,matchRule); this.typeSuffix = typeSuffix; if (typeSignature != null) { // store type signatures and arguments this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); setTypeArguments(Util.getAllTypeArguments(this.typeSignatures)); if (hasTypeArguments()) { this.segmentsSize = getTypeArguments().length + CharOperation.occurencesOf('/', this.typeSignatures[0]) - 1; } } this.fineGrain = limitTo & 0xFFFFFFF0; if (this.fineGrain == IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE) { this.categories = CATEGORIES_ANNOT_REF; } }
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, char typeSuffix, int matchRule) { this(qualification, simpleName,matchRule); this.typeSuffix = typeSuffix; if (typeSignature != null) { // store type signatures and arguments this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); setTypeArguments(Util.getAllTypeArguments(this.typeSignatures)); if (hasTypeArguments()) { this.segmentsSize = getTypeArguments().length + CharOperation.occurencesOf('/', this.typeSignatures[0]) - 1; } } this.fineGrain = limitTo & 0xFFFFFFF0; if (this.fineGrain == IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE) { this.categories = CATEGORIES_ANNOT_REF; } }
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, char typeSuffix, int matchRule) { this(qualification, simpleName,matchRule); this.typeSuffix = typeSuffix; if (typeSignature != null) { // store type signatures and arguments this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); setTypeArguments(Util.getAllTypeArguments(this.typeSignatures)); if (hasTypeArguments()) { this.segmentsSize = getTypeArguments().length + CharOperation.occurencesOf('/', this.typeSignatures[0]) - 1; } } this.fineGrain = limitTo & 0xFFFFFFF0; if (this.fineGrain == IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE) { this.categories = CATEGORIES_ANNOT_REF; } }
public TypeReferencePattern(char[] qualification, char[] simpleName, String typeSignature, int limitTo, char typeSuffix, int matchRule) { this(qualification, simpleName,matchRule); this.typeSuffix = typeSuffix; if (typeSignature != null) { // store type signatures and arguments this.typeSignatures = Util.splitTypeLevelsSignature(typeSignature); setTypeArguments(Util.getAllTypeArguments(this.typeSignatures)); if (hasTypeArguments()) { this.segmentsSize = getTypeArguments().length + CharOperation.occurencesOf('/', this.typeSignatures[0]) - 1; } } this.fineGrain = limitTo & 0xFFFFFFF0; if (this.fineGrain == IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE) { this.categories = CATEGORIES_ANNOT_REF; } }