Code example for Method

Methods: getReturnType

0
  public void setLayoutParams(LayoutParams params) {
    field("mLayoutParams").ofType(LayoutParams.class).in(realWebView).set(params);
  } 
 
  private Object nullish(Method method) {
    Class<?> returnType = method.getReturnType();
    if (returnType.equals(long.class)
        || returnType.equals(double.class)
        || returnType.equals(int.class)
        || returnType.equals(float.class)
        || returnType.equals(short.class)
        || returnType.equals(byte.class)
        ) return 0; 
    if (returnType.equals(char.class)) return '\0';
    if (returnType.equals(boolean.class)) return false;
    return null; 
  } 
 
  private Class<?> getClassNamed(String className) {
    try { 
      return getClass().getClassLoader().loadClass(className);