public class ClassPackage extends Object
| Constructor and Description |
|---|
ClassPackage(List<String> packagePath)
Creates a new ClassPackage.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getPath()
Returns the path for the package.
|
int |
hashCode() |
boolean |
isProxied()
Indicates if the package contains a proxy.
|
static void |
main(String[] args)
A test harness for this class.
|
String |
toName(String separator,
boolean trailingSeparator)
Returns the name of this package, separating individual packages
by the path separator.
|
String |
toString() |
public String toName(String separator, boolean trailingSeparator)
separator - - The separator to be usedtrailingSeparator - - True if a trailing separator should
be added.
For example,
ClassPackage p = new ClassPackage( new String[] { "java", "lang" } );
package.toName( "/", true ); // returns "java/lang/"
package.toName( ", ", false ); // returns "java, lang"public List<String> getPath()
public boolean isProxied()
public static void main(String[] args)
args - the command-line argumentsCopyright © 2012. All Rights Reserved.