|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.reflect.innerclass.StaticInnerClassName
public final class StaticInnerClassName
Understands the name of a static inner class.
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
();
Method Summary | |
---|---|
Invoker |
in(Class<?> declaringClass)
Specifies the declaring class of the static inner class to obtain. |
static StaticInnerClassName |
startStaticInnerClassAccess(String name)
Creates a new StaticInnerClassName . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static StaticInnerClassName startStaticInnerClassAccess(String name)
StaticInnerClassName
.
name
- the name of the static inner class to obtain.
StaticInnerClassName
.
NullPointerException
- if the given name is null
.
IllegalArgumentException
- if the given name is empty.public Invoker in(Class<?> declaringClass)
declaringClass
- the declaring class.
NullPointerException
- if the given declaring class is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |