public Boolean visit ( ClassOrInterfaceDeclaration declaration , Object extra ) { if ( declaration . getAnnotations ( ) != null && containsAnnotation ( declaration . getAnnotations ( ) , CONTROL_ANNO_NAME ) ) { return true ; } //Get the list of extended and implemented class List < ClassOrInterfaceType > hierarchy = new ArrayList <> ( ) ; if ( declaration . getExtends ( ) != null ) { hierarchy . addAll ( declaration . getExtends ( ) ) ; } if ( declaration . getImplements ( ) != null ) { hierarchy . addAll ( declaration . getImplements ( ) ) ; } return containsClassName ( hierarchy , CONTROL_CLASSNAMES ) ; }
Visit the Class declaration and return true if it corresponds to a wisdom controller .