public boolean extendsClassOrInterface ( Types types , TypeMirror typeMirror , TypeMirror toImplement ) { String clearedToImplement = this . removeGenericsFromClassName ( toImplement . toString ( ) ) ; Set < TypeMirror > setOfSuperType = this . getFlattenedSupertypeHierarchy ( types , typeMirror ) ; for ( TypeMirror mirror : setOfSuperType ) { if ( clearedToImplement . equals ( this . removeGenericsFromClassName ( mirror . toString ( ) ) ) ) { return true ; } } return false ; }
checks if a class or interface is implemented .