public class FQClassNameWithBaseDir extends Object implements Copyable
Given a base directory and fully-qualified class name, get a Path, LineIterator, or PrintWriter to its source code, class file, or JavaDoc html file. The fully-qualified class name may or may not represent an actually-existing class (as determined by Class.forName(s)).
aliteralmind __DASH__ github __AT__ yahoo __DOT__ com), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. http://codelet.aliteralmind.com, https://github.com/aliteralmind/codelet| Constructor and Description |
|---|
FQClassNameWithBaseDir(FQClassNameWithBaseDir to_copy)
Create a new instance as a duplicate of another.
|
FQClassNameWithBaseDir(FQClassNameWithBaseDir to_copy,
String baseDir_override,
String fqClsName_override,
String dotXtnsn_override)
Create a new instance as a duplicate of another.
|
FQClassNameWithBaseDir(String base_dir,
String fq_className,
String dot_plusExtension) |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
appendText(StringBuilder to_appendTo) |
String |
getBaseDirectory() |
String |
getClassName() |
String |
getDotPlusExtension() |
String |
getFileText() |
FQClassNameWithBaseDir |
getObjectCopy()
Get a duplicate of this
FQClassNameWithBaseDir. |
Path |
getPath() |
FQClassNameWithBaseDir |
getThisOrCrashIfBad(Existence existence_is,
Readable readable_is,
Writable writable_is) |
FQClassNameWithBaseDir |
getThisOrCrashIfBad(Readable readable_is,
Writable writable_is) |
PrintWriter |
newFileWriter() |
static PrintWriter |
newFileWriterForWriteable(String base_dir,
String fq_className,
String dot_plusExtension) |
Iterator<String> |
newLineIterator() |
static Iterator<String> |
newLineIteratorForExistingReadable(String base_dir,
String fq_className,
String dot_plusExtension) |
String |
toString() |
public FQClassNameWithBaseDir(String base_dir, String fq_className, String dot_plusExtension)
public FQClassNameWithBaseDir(FQClassNameWithBaseDir to_copy)
Create a new instance as a duplicate of another.
to_copy - May not be null.getObjectCopy()public FQClassNameWithBaseDir(FQClassNameWithBaseDir to_copy, String baseDir_override, String fqClsName_override, String dotXtnsn_override)
Create a new instance as a duplicate of another.
to_copy - May not be null.getObjectCopy()public FQClassNameWithBaseDir getThisOrCrashIfBad(Readable readable_is, Writable writable_is) throws NoSuchFileException, AccessDeniedException
public FQClassNameWithBaseDir getThisOrCrashIfBad(Existence existence_is, Readable readable_is, Writable writable_is) throws NoSuchFileException, AccessDeniedException
public Iterator<String> newLineIterator()
public String getFileText()
public StringBuilder appendText(StringBuilder to_appendTo)
public PrintWriter newFileWriter()
public String getBaseDirectory()
public String getClassName()
public String getDotPlusExtension()
public FQClassNameWithBaseDir getObjectCopy()
Get a duplicate of this FQClassNameWithBaseDir.
getObjectCopy in interface Copyable(new FQClassNameWithBaseDir(this))public static final Iterator<String> newLineIteratorForExistingReadable(String base_dir, String fq_className, String dot_plusExtension) throws NoSuchFileException, AccessDeniedException
public static final PrintWriter newFileWriterForWriteable(String base_dir, String fq_className, String dot_plusExtension) throws NoSuchFileException, AccessDeniedException
Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet