public StringConstant getString ( String name ) { for ( int i = 0 ; i < _entries . size ( ) ; i ++ ) { ConstantPoolEntry entry = _entries . get ( i ) ; if ( ! ( entry instanceof StringConstant ) ) continue ; StringConstant stringEntry = ( StringConstant ) entry ; if ( stringEntry . getString ( ) . equals ( name ) ) return stringEntry ; } return null ; }
Gets a string constant .