java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.PatternLocator
org.aspectj.org.eclipse.jdt.internal.core.search.matching.ModuleLocator
Alle implementierten Schnittstellen:
IQualifiedTypeResolutionListener, IIndexConstants

public class ModuleLocator extends PatternLocator
Copyright (c) 2017 IBM Corporation and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 Contributors: IBM Corporation - initial API and implementation
  • Konstruktordetails

  • Methodendetails

    • match

      public int match(ModuleDeclaration node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • match

      protected int match(ModuleReference node, MatchingNodeSet nodeSet)
      Setzt außer Kraft:
      match in Klasse PatternLocator
    • matchContainer

      protected int matchContainer()
      Beschreibung aus Klasse kopiert: PatternLocator
      Returns the type(s) of container for this pattern. It is a bit combination of types, denoting compilation unit, class declarations, field declarations or method declarations.
      Setzt außer Kraft:
      matchContainer in Klasse PatternLocator
    • resolveLevel

      public int resolveLevel(ASTNode possibleMatchingNode)
      Beschreibung aus Klasse kopiert: PatternLocator
      Finds out whether the given ast node matches this search pattern. Returns IMPOSSIBLE_MATCH if it doesn't. Returns INACCURATE_MATCH if it potentially matches this search pattern (i.e. it has already been resolved but resolving failed.) Returns ACCURATE_MATCH if it matches exactly this search pattern (i.e. it doesn't need to be resolved or it has already been resolved.)
      Setzt außer Kraft:
      resolveLevel in Klasse PatternLocator
    • matchReportReference

      protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws org.eclipse.core.runtime.CoreException
      Beschreibung aus Klasse kopiert: PatternLocator
      Reports the match of the given reference.
      Setzt außer Kraft:
      matchReportReference in Klasse PatternLocator
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • matchReportReference

      protected void matchReportReference(ASTNode reference, IJavaElement element, IJavaElement localElement, IJavaElement[] otherElements, Binding elementBinding, int accuracy, MatchLocator locator) throws org.eclipse.core.runtime.CoreException
      Beschreibung aus Klasse kopiert: PatternLocator
      Reports the match of the given reference. Also provide a local element to eventually report in match.
      Setzt außer Kraft:
      matchReportReference in Klasse PatternLocator
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • newDeclarationMatch

      public SearchMatch newDeclarationMatch(ASTNode node, IJavaElement element, Binding elementBinding, int accuracy, int length, MatchLocator locator)
      Setzt außer Kraft:
      newDeclarationMatch in Klasse PatternLocator
    • referenceType

      protected int referenceType()
      Setzt außer Kraft:
      referenceType in Klasse PatternLocator
    • resolveLevel

      public int resolveLevel(Binding binding)
      Beschreibung aus Klasse kopiert: PatternLocator
      Finds out whether the given binding matches this search pattern. Returns ACCURATE_MATCH if it does. Returns INACCURATE_MATCH if resolve failed but match is still possible. Returns IMPOSSIBLE_MATCH otherwise. Default is to return INACCURATE_MATCH.
      Setzt außer Kraft:
      resolveLevel in Klasse PatternLocator