public static boolean isLiveData ( SQLiteModelMethod methodDefinition ) { boolean result = false ; TypeName returnTypeName = methodDefinition . getReturnClass ( ) ; if ( returnTypeName instanceof ParameterizedTypeName ) { ParameterizedTypeName returnParameterizedTypeName = ( ParameterizedTypeName ) returnTypeName ; ClassName returnParameterizedClassName = returnParameterizedTypeName . rawType ; // Class<?> wrapperClazz; // try { // wrapperClazz = Class.forName(returnParameterizedClassName.toString()); // } catch (ClassNotFoundException e) { // e.printStackTrace(); // throw (new KriptonRuntimeException(e)); // } // // String wrapperName = wrapperClazz.getName(); if ( KriptonLiveDataManager . getInstance ( ) . isLiveData ( returnParameterizedClassName . toString ( ) ) ) { result = true ; } } return result ; }
Checks if is live data .