java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.PossibleMatch
All Implemented Interfaces:
ICompilationUnit, IDependent

public class PossibleMatch extends Object implements ICompilationUnit
  • Field Details

    • NO_SOURCE_FILE_NAME

      public static final String NO_SOURCE_FILE_NAME
      See Also:
    • NO_SOURCE_FILE

      public static final char[] NO_SOURCE_FILE
    • resource

      public org.eclipse.core.resources.IResource resource
    • openable

      public Openable openable
    • nodeSet

      public MatchingNodeSet nodeSet
    • compoundName

      public char[][] compoundName
    • document

      public SearchDocument document
    • autoModuleName

      public String autoModuleName
  • Constructor Details

    • PossibleMatch

      public PossibleMatch(MatchLocator locator, org.eclipse.core.resources.IResource resource, Openable openable, SearchDocument document, boolean mustResolve)
  • Method Details

    • cleanUp

      public void cleanUp()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getContents

      public char[] getContents()
      Description copied from interface: ICompilationUnit
      Answer the contents of the compilation unit. In normal use, the contents are requested twice. Once during the initial lite parsing step, then again for the more detailed parsing step. Implementors must never return null - return an empty char[] instead, CharOperation.NO_CHAR being the candidate of choice.
      Specified by:
      getContents in interface ICompilationUnit
    • getFileName

      public char[] getFileName()
      The exact openable file name. In particular, will be the originating .class file for binary openable with attached source.
      Specified by:
      getFileName in interface IDependent
      See Also:
    • getMainTypeName

      public char[] getMainTypeName()
      Description copied from interface: ICompilationUnit
      Answer the name of the top level public type. For example, {Hashtable}.
      Specified by:
      getMainTypeName in interface ICompilationUnit
    • getPackageName

      public char[][] getPackageName()
      Description copied from interface: ICompilationUnit
      Answer the name of the package according to the directory structure or null if package consistency checks should be ignored. For example, {java, lang}.
      Specified by:
      getPackageName in interface ICompilationUnit
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • ignoreOptionalProblems

      public boolean ignoreOptionalProblems()
      Description copied from interface: ICompilationUnit
      Answer if optional problems should be ignored for this compilation unit. Implementors should return false if there is no preference.
      Specified by:
      ignoreOptionalProblems in interface ICompilationUnit
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getModuleName

      public char[] getModuleName()
      Description copied from interface: ICompilationUnit
      Returns the name of the module to which this compilation unit is associated. A return value of null signals the unnamed module.
      Specified by:
      getModuleName in interface ICompilationUnit
      Returns:
      module name or null for the unnamed module.