private boolean lookupSwitchOnString ( ) { if ( stack . getStackDepth ( ) > 1 ) { OpcodeStack . Item item = stack . getStackItem ( 1 ) ; String stringRef = ( String ) item . getUserValue ( ) ; if ( stringRef == null ) { return false ; } if ( ! lookupSwitches . isEmpty ( ) ) { LookupDetails details = lookupSwitches . get ( lookupSwitches . size ( ) - 1 ) ; return stringRef . equals ( details . getStringReference ( ) ) ; } } return true ; }
looks to see if the string used in a equals or compareTo is the same as that of a switch statement s switch on string .