private static String getRegisterName ( final Code obj , final int reg ) { LocalVariableTable lvt = obj . getLocalVariableTable ( ) ; if ( lvt != null ) { LocalVariable lv = lvt . getLocalVariable ( reg , 0 ) ; if ( lv != null ) { return lv . getName ( ) ; } } return String . valueOf ( reg ) ; }
returns the variable name of the specified register slot