Class PossibleMatch
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.PossibleMatch
- All Implemented Interfaces:
ICompilationUnit,IDependent
-
Field Summary
FieldsModifier and TypeFieldDescriptionchar[][]static final char[]static final Stringorg.eclipse.core.resources.IResourceFields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent
JAR_FILE_ENTRY_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionPossibleMatch(MatchLocator locator, org.eclipse.core.resources.IResource resource, Openable openable, SearchDocument document, boolean mustResolve) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()booleanchar[]Answer the contents of the compilation unit.char[]The exact openable file name.char[]Answer the name of the top level public type.char[]Returns the name of the module to which this compilation unit is associated.char[][]Answer the name of the package according to the directory structure or null if package consistency checks should be ignored.inthashCode()booleanAnswer if optional problems should be ignored for this compilation unit.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.ICompilationUnit
getDestinationPath, getExternalAnnotationPath, module
-
Field Details
-
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
-
nodeSet
-
compoundName
public char[][] compoundName -
document
-
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
-
getContents
public char[] getContents()Description copied from interface:ICompilationUnitAnswer 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:
getContentsin interfaceICompilationUnit
-
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:
getFileNamein interfaceIDependent- See Also:
-
getMainTypeName
public char[] getMainTypeName()Description copied from interface:ICompilationUnitAnswer the name of the top level public type. For example, {Hashtable}.- Specified by:
getMainTypeNamein interfaceICompilationUnit
-
getPackageName
public char[][] getPackageName()Description copied from interface:ICompilationUnitAnswer 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:
getPackageNamein interfaceICompilationUnit
-
hashCode
-
ignoreOptionalProblems
public boolean ignoreOptionalProblems()Description copied from interface:ICompilationUnitAnswer if optional problems should be ignored for this compilation unit. Implementors should returnfalseif there is no preference.- Specified by:
ignoreOptionalProblemsin interfaceICompilationUnit
-
toString
-
getModuleName
public char[] getModuleName()Description copied from interface:ICompilationUnitReturns the name of the module to which this compilation unit is associated. A return value ofnullsignals the unnamed module.- Specified by:
getModuleNamein interfaceICompilationUnit- Returns:
- module name or
nullfor the unnamed module.
-