public abstract class IndexDeclaration extends IdDeclaration implements SourceDeclaration
id| Constructor and Description |
|---|
IndexDeclaration(java.lang.String id,
IndexingContext context,
int startOffset,
int endOffset) |
IndexDeclaration(java.lang.String id,
Workspace workspace,
Project project,
java.net.URL url,
int startOffset,
int endOffset) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndOffset()
Get the end offset of the declaration in the source file.
|
Project |
getProject()
Get the project containing the source file this declaration appears in.
|
QueryCriteria |
getQueryCriteria()
Get the index query criteria that matches this declaration.
|
int |
getStartOffset()
Get the start offset of the declaration in the source file.
|
java.net.URL |
getURL()
Get the URL containing this declaration, if there is one.
|
Workspace |
getWorkspace()
Get the workspace containing the source file this declaration appears in.
|
void |
show()
Show this declaration to the user.
|
canDelete, delete, equals, findDeclaration, getDeclarationId, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcanDelete, deletepublic IndexDeclaration(java.lang.String id,
IndexingContext context,
int startOffset,
int endOffset)
public Workspace getWorkspace()
SourceDeclarationgetWorkspace in interface SourceDeclarationpublic Project getProject()
SourceDeclarationgetProject in interface SourceDeclarationpublic java.net.URL getURL()
DeclarationgetURL in interface Declarationpublic int getStartOffset()
SourceDeclarationgetStartOffset in interface SourceDeclarationpublic int getEndOffset()
SourceDeclarationgetEndOffset in interface SourceDeclarationpublic void show()
Declarationshow in interface Declarationpublic QueryCriteria getQueryCriteria()