public final class StaticInnerClassName
extends java.lang.Object
Let's assume we have the class Jedi, which contains two static inner classes: Master and
Padawan.
public class Jedi {
public static class Master {}
public static class Padawan {}
}
The following example shows how to get a reference to the inner class Master:
Class<?> masterClass =staticInnerClass("Master").in(Jedi.class).get();
| Modifier and Type | Method and Description |
|---|---|
Invoker |
in(java.lang.Class<?> declaringClass)
Specifies the declaring class of the static inner class to obtain.
|
static StaticInnerClassName |
startStaticInnerClassAccess(java.lang.String name)
Creates a new
StaticInnerClassName. |
public static StaticInnerClassName startStaticInnerClassAccess(java.lang.String name)
StaticInnerClassName.name - the name of the static inner class to obtain.StaticInnerClassName.java.lang.NullPointerException - if the given name is null.java.lang.IllegalArgumentException - if the given name is empty.public Invoker in(java.lang.Class<?> declaringClass)
declaringClass - the declaring class.java.lang.NullPointerException - if the given declaring class is null.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.