Code example for Method

Methods: getReturnType

0
      // big trouble). 
      assert args == null || args.length == 0 : "Cannot execute GinInjector methods with non-zero argument list";
 
      // Try to return a new instance based on the classLiteral 
      // returnType. 
      Class<?> returnLiteral = method.getReturnType();
      return injector.getInstance(returnLiteral);
   } 
}