org.netbeans.modules.projectapi/1 1.36.1

org.netbeans.spi.project
Class SingleMethod

java.lang.Object
  extended by org.netbeans.spi.project.SingleMethod

public final class SingleMethod
extends Object

Structure representing an identification of a single method/function in a file.

Since:
1.19

Field Summary
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 Summary
SingleMethod(FileObject file, String methodName)
          Creates a new instance holding the specified identification of a method/function in a file.
 
Method Summary
 boolean equals(Object obj)
           
 FileObject getFile()
          Returns the file identification.
 String getMethodName()
          Returns name of a method/function within the file.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_RUN_SINGLE_METHOD

public static final String COMMAND_RUN_SINGLE_METHOD
Standard command for running single method/function

Since:
1.19
See Also:
Constant Field Values

COMMAND_DEBUG_SINGLE_METHOD

public static final String COMMAND_DEBUG_SINGLE_METHOD
Standard command for running single method/function in debugger

Since:
1.19
See Also:
Constant Field Values
Constructor Detail

SingleMethod

public SingleMethod(FileObject file,
                    String methodName)
Creates a new instance holding the specified identification of a method/function in a file.

Parameters:
file - file to be kept in the object
methodName - name of a method inside the file
Throws:
IllegalArgumentException - if the file or method name is null
Since:
1.19
Method Detail

getFile

public FileObject getFile()
Returns the file identification.

Returns:
file held by this object
Since:
1.19

getMethodName

public String getMethodName()
Returns name of a method/function within the file.

Returns:
method/function name held by this object
Since:
1.19

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

org.netbeans.modules.projectapi/1 1.36.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.