protected MethodSpec . Builder generateMethodBuilder ( SQLiteModelMethod method ) { MethodSpec . Builder methodBuilder ; if ( method . hasLiveData ( ) ) { methodBuilder = MethodSpec . methodBuilder ( method . getName ( ) + LIVE_DATA_PREFIX ) . addModifiers ( Modifier . PROTECTED ) ; } else { methodBuilder = MethodSpec . methodBuilder ( method . getName ( ) ) . addAnnotation ( Override . class ) . addModifiers ( Modifier . PUBLIC ) ; } return methodBuilder ; }
Generate method builder .