| |
|
| java.lang.Object edu.rice.cs.drjava.model.ClassAndInterfaceFinder
ClassAndInterfaceFinder | public class ClassAndInterfaceFinder (Code) | | Class with getClassName method for finding the name of the first class or
interface defined in a file
|
Method Summary | |
public String | getClassName() Finds the the name of the first class (excluding interfaces) defined in this file. | public String | getClassOrInterfaceName() Finds the the name of the first class or interface defined in this file. | String | getName(boolean interfaceOK) Finds the the name of the first class or interface in this file, respecting the
value of the interfaceOK flag. |
ClassAndInterfaceFinder | public ClassAndInterfaceFinder(Reader r)(Code) | | |
ClassAndInterfaceFinder | public ClassAndInterfaceFinder(File f)(Code) | | |
getClassName | public String getClassName()(Code) | | Finds the the name of the first class (excluding interfaces) defined in this file.
the String containing this name or "" if no such class or interfaceis found. |
getClassOrInterfaceName | public String getClassOrInterfaceName()(Code) | | Finds the the name of the first class or interface defined in this file.
the String containing this name or "" if no such class or interfaceis found. |
getName | String getName(boolean interfaceOK)(Code) | | Finds the the name of the first class or interface in this file, respecting the
value of the interfaceOK flag.
I hate flags but did not see a simpler way to avoid duplicated code.
This method has package (rather than private) visibility for testing purposes.
|
|
|
|