KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > core > search > matching > ImportMatchLocatorParser


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.core.search.matching;
12
13 import org.eclipse.jdt.internal.compiler.problem.ProblemReporter;
14
15 class ImportMatchLocatorParser extends MatchLocatorParser {
16
17 protected ImportMatchLocatorParser(ProblemReporter problemReporter, MatchLocator locator) {
18     super(problemReporter, locator);
19 }
20 protected void consumeStaticImportOnDemandDeclarationName() {
21     super.consumeStaticImportOnDemandDeclarationName();
22     this.patternLocator.match(this.astStack[this.astPtr], this.nodeSet);
23 }
24 protected void consumeSingleStaticImportDeclarationName() {
25     super.consumeSingleStaticImportDeclarationName();
26     this.patternLocator.match(this.astStack[this.astPtr], this.nodeSet);
27 }
28 protected void consumeSingleTypeImportDeclarationName() {
29     super.consumeSingleTypeImportDeclarationName();
30     this.patternLocator.match(this.astStack[this.astPtr], this.nodeSet);
31 }
32 protected void consumeTypeImportOnDemandDeclarationName() {
33     super.consumeTypeImportOnDemandDeclarationName();
34     this.patternLocator.match(this.astStack[this.astPtr], this.nodeSet);
35 }
36
37 }
38
Popular Tags