r01f.reflection.fluent
Class StaticInnerClassReflection
java.lang.Object
r01f.reflection.fluent.StaticInnerClassReflection
public final class StaticInnerClassReflection
- extends java.lang.Object
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 = Reflection.staticInnerClass("Master").in(Jedi.class).get();
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_innerClassName
private final java.lang.String _innerClassName
StaticInnerClassReflection
private StaticInnerClassReflection(java.lang.String name)
startStaticInnerClassAccess
static StaticInnerClassReflection startStaticInnerClassAccess(java.lang.String name)
- Creates a new
StaticInnerClassReflection.
- Parameters:
name - the name of the static inner class to obtain.
- Returns:
- the created
StaticInnerClassName.
- Throws:
java.lang.NullPointerException - if the given name is null.
java.lang.IllegalArgumentException - if the given name is empty.
in
public StaticInnerClassInvoker in(java.lang.Class<?> declaringClass)
- Specifies the declaring class of the static inner class to obtain.
- Parameters:
declaringClass - the declaring class.
- Returns:
- an object responsible for obtaining a reference to a static inner class.
- Throws:
java.lang.NullPointerException - if the given declaring class is null.
_validateIsNotNullOrEmpty
private static void _validateIsNotNullOrEmpty(java.lang.String innerClassName)