Class SingleMethod
java.lang.Object
org.netbeans.spi.project.SingleMethod
Structure representing an identification of a single method/function
in a file.
- Since:
- 1.19
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleMethod
(String methodName, NestedClass nestedClass) Creates a new instance holding the specified identification of a method/function in nested class in a file.SingleMethod
(org.openide.filesystems.FileObject file, String methodName) Creates a new instance holding the specified identification of a method/function in a file. -
Method Summary
-
Field Details
-
COMMAND_RUN_SINGLE_METHOD
Standard command for running single method/function- Since:
- 1.19
- See Also:
-
COMMAND_DEBUG_SINGLE_METHOD
Standard command for running single method/function in debugger- Since:
- 1.19
- See Also:
-
-
Constructor Details
-
SingleMethod
Creates a new instance holding the specified identification of a method/function in a file.- Parameters:
file
- file to be kept in the objectmethodName
- name of a method inside the file- Throws:
IllegalArgumentException
- if the file or method name isnull
- Since:
- 1.19
-
SingleMethod
Creates a new instance holding the specified identification of a method/function in nested class in a file.- Parameters:
methodName
- name of a method inside the filenestedClass
- nested class containing the method- Throws:
IllegalArgumentException
- if the nested class name isnull
- Since:
- 1.99
-
-
Method Details
-
getNestedClass
Returns the nested class containing the method.- Returns:
- nested class containing the method
- Since:
- 1.99
-
getFile
public org.openide.filesystems.FileObject getFile()Returns the file identification.- Returns:
- file held by this object
- Since:
- 1.19
-
getMethodName
Returns name of a method/function within the file.- Returns:
- method/function name held by this object
- Since:
- 1.19
-
equals
-
hashCode
-