Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.internal.core.search.matching;
public abstract class VariablePattern extends JavaSearchPattern {
protected boolean findDeclarations = false;
protected boolean findReferences = false;
protected boolean readAccess = false;
protected boolean writeAccess = false;
protected char[] name;
public final static int FINE_GRAIN_MASK =
public VariablePattern(int patternKindchar[] nameint limitToint matchRule) {
	super(patternKindmatchRule);
    this. = limitTo & ;
    if (this. == 0) {
		switch (limitTo & 0xF) {
				this. = true;
				break;
				this. = true;
				this. = true;
				break;
				this. = true;
				break;
				this. = true;
				break;
				this. = true;
				this. = true;
				this. = true;
				break;
		}
		this. = this. || this.;
    }
	this. = (this. || this.) ? name : CharOperation.toLowerCase(name);
/*
 * Returns whether a method declaration or message send will need to be resolved to
 * find out if this method pattern matches it.
 */
protected boolean mustResolve() {
	// would like to change this so that we only do it if generic references are found
	return this. || this. != 0; // always resolve (in case of a simple name reference being a potential match)
New to GrepCode? Check out our FAQ X