public Collection < Location > getLocationsContainingInstructionWithOffset ( int offset ) { LinkedList < Location > result = new LinkedList <> ( ) ; for ( Iterator < Location > i = locationIterator ( ) ; i . hasNext ( ) ; ) { Location location = i . next ( ) ; if ( location . getHandle ( ) . getPosition ( ) == offset ) { result . add ( location ) ; } } return result ; }
Get a Collection of Locations which specify the instruction at given bytecode offset .