| /******************************************************************************* |
| * Copyright (c) 2000, 2004 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.compiler; |
| |
| import org.eclipse.jdt.core.compiler.IProblem; |
| |
| public class SourceElementRequestorAdapter implements ISourceElementRequestor { |
| |
| /** |
| * @see ISourceElementRequestor#acceptConstructorReference(char[], int, int) |
| */ |
| public void acceptConstructorReference( |
| char[] typeName, |
| int argCount, |
| int sourcePosition) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptFieldReference(char[], int) |
| */ |
| public void acceptFieldReference(char[] fieldName, int sourcePosition) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptImport(int, int, char[], boolean, int) |
| */ |
| public void acceptImport( |
| int declarationStart, |
| int declarationEnd, |
| char[] name, |
| boolean onDemand, |
| int modifiers) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptLineSeparatorPositions(int[]) |
| */ |
| public void acceptLineSeparatorPositions(int[] positions) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptMethodReference(char[], int, int) |
| */ |
| public void acceptMethodReference( |
| char[] methodName, |
| int argCount, |
| int sourcePosition) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptPackage(int, int, char[]) |
| */ |
| public void acceptPackage( |
| int declarationStart, |
| int declarationEnd, |
| char[] name) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptProblem(IProblem) |
| */ |
| public void acceptProblem(IProblem problem) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptTypeReference(char[][], int, int) |
| */ |
| public void acceptTypeReference( |
| char[][] typeName, |
| int sourceStart, |
| int sourceEnd) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptTypeReference(char[], int) |
| */ |
| public void acceptTypeReference(char[] typeName, int sourcePosition) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptUnknownReference(char[][], int, int) |
| */ |
| public void acceptUnknownReference( |
| char[][] name, |
| int sourceStart, |
| int sourceEnd) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#acceptUnknownReference(char[], int) |
| */ |
| public void acceptUnknownReference(char[] name, int sourcePosition) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#enterCompilationUnit() |
| */ |
| public void enterCompilationUnit() { |
| // default implementation: do nothing |
| } |
| |
| public void enterConstructor(MethodInfo methodInfo) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#enterField(FieldInfo) |
| */ |
| public void enterField(FieldInfo fieldInfo) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#enterInitializer(int, int) |
| */ |
| public void enterInitializer(int declarationStart, int modifiers) { |
| // default implementation: do nothing |
| } |
| |
| public void enterMethod(MethodInfo methodInfo) { |
| // default implementation: do nothing |
| } |
| |
| public void enterType(TypeInfo typeInfo) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#exitCompilationUnit(int) |
| */ |
| public void exitCompilationUnit(int declarationEnd) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#exitConstructor(int) |
| */ |
| public void exitConstructor(int declarationEnd) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#exitField(int, int, int) |
| */ |
| public void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#exitInitializer(int) |
| */ |
| public void exitInitializer(int declarationEnd) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#exitMethod(int, int, int) |
| */ |
| public void exitMethod(int declarationEnd, int defaultValueStart, int defaultValueEnd) { |
| // default implementation: do nothing |
| } |
| |
| /** |
| * @see ISourceElementRequestor#exitType(int) |
| */ |
| public void exitType(int declarationEnd) { |
| // default implementation: do nothing |
| } |
| |
| } |
| |