public final class SingleMethod extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_DEBUG_SINGLE_METHOD
Standard command for running single method/function in debugger
|
static String |
COMMAND_RUN_SINGLE_METHOD
Standard command for running single method/function
|
Constructor and Description |
---|
SingleMethod(FileObject file,
String methodName)
Creates a new instance holding the specified identification
of a method/function in a file.
|
SingleMethod(String methodName,
NestedClass nestedClass)
Creates a new instance holding the specified identification
of a method/function in nested class in a file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
FileObject |
getFile()
Returns the file identification.
|
String |
getMethodName()
Returns name of a method/function within the file.
|
NestedClass |
getNestedClass()
Returns the nested class containing the method.
|
int |
hashCode() |
public static final String COMMAND_RUN_SINGLE_METHOD
public static final String COMMAND_DEBUG_SINGLE_METHOD
public SingleMethod(FileObject file, String methodName)
file
- file to be kept in the objectmethodName
- name of a method inside the fileIllegalArgumentException
- if the file or method name is null
public SingleMethod(String methodName, NestedClass nestedClass)
methodName
- name of a method inside the filenestedClass
- nested class containing the methodIllegalArgumentException
- if the nested class name is null
public NestedClass getNestedClass()
public FileObject getFile()
public String getMethodName()