/**
* Returns field with given name (case is ignored). Or <code>null</code> if
* field is not found.
+ *
+ * @param fieldToSearch
+ * field name (case is ignored)
+ * @return field matching given name
*/
protected FieldDescriptor getFieldIgnoreCase(final String fieldToSearch) {
/**
* Checks if class has field with given name (case is ignored). Returns
* <code>true</code> if such field is found.
+ *
+ * @param fieldToSearch
+ * field to search for (case is ignored)
+ *
+ * @return <code>true</code> if field is found.
*/
protected boolean hasFieldIgnoreCase(final String fieldToSearch) {
/**
* @param objects
* objects that shall be added to graph
+ *
+ * @return this {@link ClassGraph}
*/
public ClassGraph add(final Object... objects) {
}
/**
- * @param targetDirectory
- * target directory name
- *
* @param resultFileName
* file name for the generated graph. File extension will be
* added automatically. Existing file with the same name will be
* overwritten.
*
- * @param keepDotFile
- * if set to <code>true</code> then intermediary GraphViz DOT
- * file will be kept.
*/
public void generateGraph(final String resultFileName) {
// execute GraphViz to visualize graph
try {
Runtime.getRuntime()
- .exec(new String[] { "dot", "-Tpng", dotFilePath, "-o",
- imageFilePath }).waitFor();
+ .exec(new String[] { "dot", "-Tpng", dotFilePath, "-o",
+ imageFilePath }).waitFor();
} catch (final InterruptedException e) {
} finally {
}
/**
* @param clazz
* class that shall be added to graph
+ *
+ * @return {@link ClassDescriptor} corresponding to given {@link Class}
*/
protected ClassDescriptor getOrCreateClassDescriptor(final Class clazz) {
/**
* Hide orphaned class that have no references
+ *
+ * @return this {@link ClassGraph}
*/
public ClassGraph hideOrphanedClasses() {
/**
* retrieves colors from predefined palette
+ *
+ * @return next available dark color name
*/
protected static String getNextDarkColor() {
lastChosenDarkColor++;
/**
* retrieves colors from predefined palette
+ *
+ * @return next available light color name
*/
protected static String getNextLightColor() {
lastChosenLightColor++;