All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.jdt.core.search.MethodNameMatch 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;

import org.eclipse.jdt.core.IAccessRule;
import org.eclipse.jdt.core.IMethod;

/**
 * A match collected while {@link SearchEngine searching} for
 * all type names methods using a {@link MethodNameRequestor requestor}.
 * 

* The method of this match is available from {@link #getMethod()}. *

* * @noextend This class is not intended to be subclassed by clients. * * @see MethodNameMatchRequestor * @see SearchEngine#searchAllMethodNames(char[], int, char[], int, char[], int, char[], int, IJavaSearchScope, MethodNameMatchRequestor, int, org.eclipse.core.runtime.IProgressMonitor) * @since 3.12 */ public abstract class MethodNameMatch { /** * Returns the accessibility of the declaring type of the method name match * * @see IAccessRule * * @return the accessibility of the declaring type of the method name which may be * {@link IAccessRule#K_ACCESSIBLE}, {@link IAccessRule#K_DISCOURAGED} * or {@link IAccessRule#K_NON_ACCESSIBLE}. * The default returned value is {@link IAccessRule#K_ACCESSIBLE}. * */ public abstract int getAccessibility(); /** * Returns the modifiers of the matched method. *

* This is a handle-only method as neither Java Model nor classpath * initialization is done while calling this method. * * @return the type modifiers */ public abstract int getModifiers(); /** * Returns a java model method handle. * This handle may exist or not, but is not supposed to be null. *

* This is a handle-only method as neither Java Model nor classpath * initializations are done while calling this method. * * @see IMethod * @return the non-null handle on matched java model method. */ public abstract IMethod getMethod(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy