public final int getConstantIndex ( int constant ) { for ( ConstantInfo ci : listConstantInfo ( ConstantInteger . class ) ) { ConstantInteger ic = ( ConstantInteger ) ci ; if ( constant == ic . getConstant ( ) ) { return constantPoolIndexMap . get ( ci ) ; } } return - 1 ; }
Returns the constant map index to integer constant