code: public static Variable[] getDeclaredVariables(Class<?> type) {
          if (!isGeneratedClass(type))
              return new Variable[0];
          if (type.isInterface())
              return getVariables(type);
          return getVariables(getNewInstance(type));
      }
docs: /*
  Get all variables from both class static and object instance namespaces