org.aspectj.org.eclipse.jdt.internal.core.search.matching
Class PossibleMatch
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.PossibleMatch
- All Implemented Interfaces:
- ICompilationUnit, IDependent
public class PossibleMatch
- extends java.lang.Object
- implements ICompilationUnit
|
Method Summary |
void |
cleanUp()
|
boolean |
equals(java.lang.Object obj)
|
char[] |
getContents()
Answer the contents of the compilation unit. |
char[] |
getFileName()
The exact openable file name. |
char[] |
getMainTypeName()
Answer the name of the top level public type. |
char[][] |
getPackageName()
Answer the name of the package according to the directory structure
or null if package consistency checks should be ignored. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NO_SOURCE_FILE_NAME
public static final java.lang.String NO_SOURCE_FILE_NAME
- See Also:
- Constant Field Values
NO_SOURCE_FILE
public static final char[] NO_SOURCE_FILE
resource
public IResource resource
openable
public Openable openable
nodeSet
public MatchingNodeSet nodeSet
compoundName
public char[][] compoundName
document
public SearchDocument document
PossibleMatch
public PossibleMatch(MatchLocator locator,
IResource resource,
Openable openable,
SearchDocument document,
boolean mustResolve)
cleanUp
public void cleanUp()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.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:
IDependent.getFileName(),
PackageReferenceLocator.isDeclaringPackageFragment(IPackageFragment, org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding)
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 java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object