public String getFormalTypes ( ) { if ( _methodDecl == null || _methodDecl . getReturnType ( ) == null ) return "" ; Collection < TypeParameterDeclaration > formalTypes = _methodDecl . getFormalTypeParameters ( ) ; if ( formalTypes . size ( ) == 0 ) return "" ; StringBuffer sb = new StringBuffer ( "<" ) ; boolean isFirst = true ; for ( TypeParameterDeclaration tpd : formalTypes ) { if ( isFirst ) isFirst = false ; else sb . append ( ", " ) ; sb . append ( tpd . toString ( ) ) ; } sb . append ( ">" ) ; return sb . toString ( ) ; }
Returns the declaration of any generic formal types associated with the method