public int getNameIndex ( CharSequence name ) { for ( ConstantInfo ci : listConstantInfo ( Utf8 . class ) ) { Utf8 utf8 = ( Utf8 ) ci ; String str = utf8 . getString ( ) ; if ( str . contentEquals ( name ) ) { return constantPoolIndexMap . get ( ci ) ; } } return - 1 ; }
Returns the constant map index to name