org.jfree.xml.generator
public class JavaSourceCollector extends Object implements SourceCollector
| Constructor Summary | |
|---|---|
| JavaSourceCollector(File startDirectory)
Creates a new source collector.
| |
| JavaSourceCollector(File startDirectory, String packageName)
Creates a new source collector.
| |
| Method Summary | |
|---|---|
| void | addIgnoredBaseClass(String baseClass)
Adds a base class that should be ignored.
|
| void | addIgnoredBaseClass(Class baseClass)
Adds a class to the list of ignored base classes.
|
| void | addIgnoredPackage(String pkg)
Adds a package that should be ignored.
|
| protected String | buildJavaName(String packageName, String newPackage)
Creates a fully qualified Java class or package name.
|
| void | collectFiles()
Collects the files/classes. |
| protected void | collectFiles(File directory, String packageName)
Collects the files/classes.
|
| Class[] | getClasses()
Returns the list of classes as an array.
|
| protected boolean | isIgnoredBaseClass(Class c)
Returns true if the named class is being ignored (because it is a descendant
of an ignored base class), and false otherwise.
|
| protected boolean | isIgnoredPackage(String classname)
Returns true if the named class is being ignored (because of the package that
it belongs to), and false otherwise.
|
| protected Class | loadClass(String name)
Loads a class by its fully qualified name.
|
Parameters: startDirectory the start directory.
Parameters: startDirectory the base directory. packageName the base package name.
Parameters: baseClass the base class name.
Parameters: baseClass the class.
Parameters: pkg the package name.
Parameters: packageName the base package name. newPackage the class/package name.
Returns: The fully qualified package/class name.
Parameters: directory the starting directory. packageName the initial package name.
Returns: The list of classes.
true if the named class is being ignored (because it is a descendant
of an ignored base class), and false otherwise.
Parameters: c the class name.
Returns: A boolean.
true if the named class is being ignored (because of the package that
it belongs to), and false otherwise.
Parameters: classname the name of the class to test.
Returns: A boolean.
Parameters: name the class name.
Returns: The class (or null if there was a problem loading the class).