1 11 package org.eclipse.jdt.internal.core.search.matching; 12 13 import org.eclipse.jdt.core.compiler.CharOperation; 14 15 public abstract class VariablePattern extends JavaSearchPattern { 16 17 protected boolean findDeclarations; 18 protected boolean findReferences; 19 protected boolean readAccess; 20 protected boolean writeAccess; 21 22 protected char[] name; 23 24 public VariablePattern(int patternKind, boolean findDeclarations, boolean readAccess, boolean writeAccess, char[] name, int matchRule) { 25 super(patternKind, matchRule); 26 27 this.findDeclarations = findDeclarations; this.readAccess = readAccess; this.writeAccess = writeAccess; this.findReferences = readAccess || writeAccess; 31 32 this.name = (isCaseSensitive() || isCamelCase()) ? name : CharOperation.toLowerCase(name); 33 } 34 38 protected boolean mustResolve() { 39 return this.findReferences; } 42 } 43 | Popular Tags |