01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.core.search.matching;
11:
12: import org.eclipse.jdt.internal.compiler.problem.ProblemReporter;
13:
14: class ImportMatchLocatorParser extends MatchLocatorParser {
15:
16: protected ImportMatchLocatorParser(ProblemReporter problemReporter,
17: MatchLocator locator) {
18: super (problemReporter, locator);
19: }
20:
21: protected void consumeStaticImportOnDemandDeclarationName() {
22: super .consumeStaticImportOnDemandDeclarationName();
23: this .patternLocator.match(this .astStack[this .astPtr],
24: this .nodeSet);
25: }
26:
27: protected void consumeSingleStaticImportDeclarationName() {
28: super .consumeSingleStaticImportDeclarationName();
29: this .patternLocator.match(this .astStack[this .astPtr],
30: this .nodeSet);
31: }
32:
33: protected void consumeSingleTypeImportDeclarationName() {
34: super .consumeSingleTypeImportDeclarationName();
35: this .patternLocator.match(this .astStack[this .astPtr],
36: this .nodeSet);
37: }
38:
39: protected void consumeTypeImportOnDemandDeclarationName() {
40: super.consumeTypeImportOnDemandDeclarationName();
41: this.patternLocator.match(this.astStack[this.astPtr],
42: this.nodeSet);
43: }
44:
45: }
|