Class Invoker

java.lang.Object
org.fest.reflect.innerclass.Invoker

public class Invoker extends Object
Understands how to obtain a reference to a static inner class.
Since:
1.1
  • Field Details

    • declaringClass

      private final Class<?> declaringClass
    • innerClassName

      private final String innerClassName
  • Constructor Details

    • Invoker

      private Invoker(Class<?> declaringClass, String innerClassName)
  • Method Details

    • newInvoker

      static Invoker newInvoker(Class<?> declaringClass, String innerClassName)
    • get

      public Class<?> get()
      Returns a reference to the static inner class with the specified name in the specified declaring class.
      Returns:
      a reference to the static inner class with the specified name in the specified declaring class.
      Throws:
      ReflectionError - if the static inner class does not exist (since 1.2).
    • expectedInnerClassName

      private String expectedInnerClassName(String namespace)