private MethodSpec buildClassGetterMethod ( ) { return MethodSpec . methodBuilder ( isSerializer ( ) ? "getSerializedType" : "getDeserializedType" ) . addModifiers ( Modifier . PUBLIC ) . addAnnotation ( Override . class ) . returns ( Class . class ) . addStatement ( "return $T.class" , rawName ( beanInfo . getType ( ) ) ) . build ( ) ; }
Build the method that returns the class of the mapped type .