public class MethodDeclaration extends IdDeclaration
id| Constructor and Description |
|---|
MethodDeclaration(java.lang.String id,
Workspace workspace,
Project project,
SourceElement element,
java.lang.String fqClassName,
java.lang.String methodName,
java.util.Collection<java.lang.String> parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
finalize() |
java.lang.String |
getClassName()
Get the fully qualified name of the class containing this method.
|
int |
getEndOffset()
Get the end offset of the declaration in the source file.
|
java.lang.String |
getMethodName()
Get the name of the declared method.
|
java.util.Collection<java.lang.String> |
getParameters()
Get the fully qualified type names of the method parameters.
|
Project |
getProject()
Get the project containing the source file this declaration appears in.
|
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, getClass, notify, notifyAll, toString, wait, wait, waitcanDelete, deletepublic MethodDeclaration(java.lang.String id,
Workspace workspace,
Project project,
SourceElement element,
java.lang.String fqClassName,
java.lang.String methodName,
java.util.Collection<java.lang.String> parameters)
public java.lang.String getClassName()
public java.lang.String getMethodName()
public java.util.Collection<java.lang.String> getParameters()
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 finalize()
finalize in class java.lang.Objectpublic void show()
Declarationshow in interface Declaration