|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.experimental.ClassTester
public final class ClassTester
If you want to test some dependencies to a given class you can use this tester here.
| Constructor Summary | |
|---|---|
ClassTester(String classname)
Instantiates a new class tester. |
|
| Method Summary | |
|---|---|
boolean |
dependsOn(Class<?> otherClass)
Checks if the stored class depends on another class. |
boolean |
dependsOn(String otherClassname)
Checks if the stored class depends on another class. |
static boolean |
dependsOn(String classname,
Class<?> otherClass)
Checks if the given class depends on another class. |
String |
getClassName()
Gets the class name. |
Set<Class<?>> |
getDependencies()
Gets the dependencies of the class name. |
static Set<Class<?>> |
getDependenciesOf(String classname)
Gets the dependencies of the given class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassTester(String classname)
throws ClassNotFoundException
classname - the classname
ClassNotFoundException - the class not found exception| Method Detail |
|---|
public String getClassName()
public Set<Class<?>> getDependencies()
public boolean dependsOn(Class<?> otherClass)
otherClass - the other class
public boolean dependsOn(String otherClassname)
otherClassname - the other classname
public static Set<Class<?>> getDependenciesOf(String classname)
throws ClassNotFoundException
classname - the classname
ClassNotFoundException - the class not found exception
public static boolean dependsOn(String classname,
Class<?> otherClass)
throws ClassNotFoundException
classname - the classnameotherClass - the other class
ClassNotFoundException - the class not found exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||