org.eclipse.jdt.core.search.MethodNameRequestor Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2015 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.core.search;
/**
*
* A MethodDeclarationRequestor
collects search results from a searchAllMethodDeclarations
* query to a SearchEngine
. Clients must subclass this abstract class and pass an instance to the
* SearchEngine.searchAllMethodDeclarations
method.
*
*
* This class may be subclassed by clients
*
* @since 3.12
*
*/
public abstract class MethodNameRequestor {
/**
* Accepts a method.
*
*
* The default implementation of this method does nothing.
* Subclasses should override.
*
*
* @param methodName name of the method.
* @param parameterCount number of parameters in this method.
* @param declaringQualifier the qualified name of parent of the enclosing type of this method.
* @param simpleTypeName name of the enclosing type of this method.
* @param typeModifiers modifiers of the type
* @param packageName the package name as specified in the package declaration (i.e. a dot-separated name).
* @param signature signature of the method - this would be null for methods in source files.
* @param parameterTypes types of all the parameters.
* @param parameterNames names of all the parameters.
* @param returnType return type of the method.
* @param modifiers modifiers of the method.
* @param path the full path to the resource containing the type. If the resource is a .class file
* or a source file, this is the full path in the workspace to this resource. If the
* resource is an archive (that is, a .zip or .jar file), the path is composed of 2 paths separated
* by IJavaSearchScope.JAR_FILE_ENTRY_SEPARATOR
:
* the first path is the full OS path to the archive (if it is an external archive),
* or the workspace relative IPath
to the archive (if it is an internal archive),
* the second path is the path to the resource inside the archive.
*/
public void acceptMethod(
char[] methodName,
int parameterCount,
char[] declaringQualifier,
char[] simpleTypeName,
int typeModifiers,
char[] packageName,
char[] signature,
char[][] parameterTypes,
char[][] parameterNames,
char[] returnType,
int modifiers,
String path,
int methodIndex) {
//do nothing
}
}