public static boolean hasTemplate ( ProcessingEnvironment processingEnvironment , TypeElement component ) { Component annotation = component . getAnnotation ( Component . class ) ; if ( annotation == null || ! annotation . hasTemplate ( ) ) { return false ; } if ( component . getModifiers ( ) . contains ( Modifier . ABSTRACT ) ) { return false ; } return ! hasInterface ( processingEnvironment , component . asType ( ) , HasRender . class ) ; }
Check if the given Component has a Template . It doesn t have a template if the class is abstract if it implements render function or if it has the flag hasTemplate to false on the component annotation .