SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
private void matchModuleReference(MatchLocator locator, ModulePattern modulePattern, char[][] modules, boolean isTarget) throws CoreException { if (modules == null) return; for (char[] module1 : modules) { if (module1 == null || module1.length == 0) continue; if (!locator.patternLocator.matchesName(modulePattern.name, module1)) continue; // no resolve for target modules - report accurate match else resolve ModuleReferenceMatch match = locator.newModuleReferenceMatch(this.moduleDesc, null, isTarget ? SearchMatch.A_ACCURATE : SearchMatch.A_INACCURATE, -1, 0, null); locator.report(match); } } private void matchModuleReferences(MatchLocator locator, ModulePattern modulePattern,
private void matchModuleReference(MatchLocator locator, ModulePattern modulePattern, char[][] modules, boolean isTarget) throws CoreException { if (modules == null) return; for (char[] module1 : modules) { if (module1 == null || module1.length == 0) continue; if (!locator.patternLocator.matchesName(modulePattern.name, module1)) continue; // no resolve for target modules - report accurate match else resolve ModuleReferenceMatch match = locator.newModuleReferenceMatch(this.moduleDesc, null, isTarget ? SearchMatch.A_ACCURATE : SearchMatch.A_INACCURATE, -1, 0, null); locator.report(match); } } private void matchModuleReferences(MatchLocator locator, ModulePattern modulePattern,
/** * Returns whether the given type reference matches the given pattern. */ protected boolean matchesTypeReference(char[] pattern, TypeReference type) { if (pattern == null) return true; // null is as if it was "*" if (type == null) return true; // treat as an inexact match char[][] compoundName = type.getTypeName(); char[] simpleName = compoundName[compoundName.length - 1]; int dimensions = type.dimensions() * 2; if (dimensions > 0) { int length = simpleName.length; char[] result = new char[length + dimensions]; System.arraycopy(simpleName, 0, result, 0, length); for (int i = length, l = result.length; i < l;) { result[i++] = '['; result[i++] = ']'; } simpleName = result; } return matchesName(pattern, simpleName); } /**
/** * Returns whether the given type reference matches the given pattern. */ protected boolean matchesTypeReference(char[] pattern, TypeReference type) { if (pattern == null) return true; // null is as if it was "*" if (type == null) return true; // treat as an inexact match char[][] compoundName = type.getTypeName(); char[] simpleName = compoundName[compoundName.length - 1]; int dimensions = type.dimensions() * 2; if (dimensions > 0) { int length = simpleName.length; char[] result = new char[length + dimensions]; System.arraycopy(simpleName, 0, result, 0, length); for (int i = length, l = result.length; i < l;) { result[i++] = '['; result[i++] = ']'; } simpleName = result; } return matchesName(pattern, simpleName); } /**
/** * Returns whether the given type reference matches the given pattern. */ protected boolean matchesTypeReference(char[] pattern, TypeReference type) { if (pattern == null) return true; // null is as if it was "*" if (type == null) return true; // treat as an inexact match char[][] compoundName = type.getTypeName(); char[] simpleName = compoundName[compoundName.length - 1]; int dimensions = type.dimensions() * 2; if (dimensions > 0) { int length = simpleName.length; char[] result = new char[length + dimensions]; System.arraycopy(simpleName, 0, result, 0, length); for (int i = length, l = result.length; i < l;) { result[i++] = '['; result[i++] = ']'; } simpleName = result; } return matchesName(pattern, simpleName); } /**
/** * Returns whether the given type reference matches the given pattern. */ protected boolean matchesTypeReference(char[] pattern, TypeReference type) { if (pattern == null) return true; // null is as if it was "*" if (type == null) return true; // treat as an inexact match char[][] compoundName = type.getTypeName(); char[] simpleName = compoundName[compoundName.length - 1]; int dimensions = type.dimensions() * 2; if (dimensions > 0) { int length = simpleName.length; char[] result = new char[length + dimensions]; System.arraycopy(simpleName, 0, result, 0, length); for (int i = length, l = result.length; i < l;) { result[i++] = '['; result[i++] = ']'; } simpleName = result; } return matchesName(pattern, simpleName); } /**
/** * Returns whether the given type reference matches the given pattern. */ protected boolean matchesTypeReference(char[] pattern, TypeReference type) { if (pattern == null) return true; // null is as if it was "*" if (type == null) return true; // treat as an inexact match char[][] compoundName = type.getTypeName(); char[] simpleName = compoundName[compoundName.length - 1]; int dimensions = type.dimensions() * 2; if (dimensions > 0) { int length = simpleName.length; char[] result = new char[length + dimensions]; System.arraycopy(simpleName, 0, result, 0, length); for (int i = length, l = result.length; i < l;) { result[i++] = '['; result[i++] = ']'; } simpleName = result; } return matchesName(pattern, simpleName); } /**
/** * Returns whether the given type reference matches the given pattern. */ protected boolean matchesTypeReference(char[] pattern, TypeReference type) { if (pattern == null) return true; // null is as if it was "*" if (type == null) return true; // treat as an inexact match char[][] compoundName = type.getTypeName(); char[] simpleName = compoundName[compoundName.length - 1]; int dimensions = type.dimensions() * 2; if (dimensions > 0) { int length = simpleName.length; char[] result = new char[length + dimensions]; System.arraycopy(simpleName, 0, result, 0, length); for (int i = length, l = result.length; i < l;) { result[i++] = '['; result[i++] = ']'; } simpleName = result; } return matchesName(pattern, simpleName); } /**
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
SearchPattern[] patterns = ((OrPattern) this.pattern).patterns; for (int i = 0, pLength = patterns.length; i < pLength; i++) { if (!this.patternLocator.matchesName(((VariablePattern)patterns[i]).name, lastToken)) { isWriteAccess = false; isReadAccess = true; } else if (!this.patternLocator.matchesName(((VariablePattern)this.pattern).name, lastToken)) { isWriteAccess = false; isReadAccess = true;
if (!locator.patternLocator.matchesName(modulePattern.name, this.moduleName)) return; ModuleBinding moduleBinding = null;
if (!locator.patternLocator.matchesName(modulePattern.name, this.moduleName)) return; ModuleBinding moduleBinding = null;