private int findCatchHandlerFor ( int pc ) { CodeException [ ] exceptions = getMethod ( ) . getCode ( ) . getExceptionTable ( ) ; if ( exceptions != null ) { for ( CodeException ex : exceptions ) { if ( ex . getStartPC ( ) == pc ) { return ex . getHandlerPC ( ) ; } } } return - 1 ; }
returns the catch handler for a given try block