public String getThrowsClause ( ) { if ( _methodDecl == null || _methodDecl . getThrownTypes ( ) == null ) return "" ; Collection < ReferenceType > thrownTypes = _methodDecl . getThrownTypes ( ) ; if ( thrownTypes . size ( ) == 0 ) return "" ; StringBuffer sb = new StringBuffer ( "throws " ) ; int i = 0 ; for ( ReferenceType exceptType : thrownTypes ) { if ( i ++ != 0 ) sb . append ( ", " ) ; sb . append ( exceptType . toString ( ) ) ; } return sb . toString ( ) ; }
Returns the throws clause of the operation