public int indexObject(Object obj,Environment env){
  if (indexHashObject == null)   createIndexHash(env);
  Integer result=(Integer)indexHashObject.get(obj);
  if (result == null)   throw new IndexOutOfBoundsException("Cannot find object " + obj + " of type "+ obj.getClass()+ " in constant pool");
  return result.intValue();
}

public int indexObject ( Object obj , Environment env ) { if ( indexHashObject == null ) createIndexHash ( env ) ; Integer result = ( Integer ) indexHashObject . get ( obj ) ; if ( result == null ) throw new IndexOutOfBoundsException ( "Cannot find object " + obj + " of type " + obj . getClass ( ) + " in constant pool" ) ; return result . intValue ( ) ; }
find the index of an object in the constant pool
