public boolean activeP() {
    { Slot slot = this;

      return (((((BooleanWrapper)(KeyValueList.dynamicSlotValue(slot.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, null))) != null) ? BooleanWrapper.coerceWrappedBooleanToBoolean(((BooleanWrapper)(KeyValueList.dynamicSlotValue(slot.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, null)))) : ((((Stella_Class)(Stella.SGT_STELLA_COLLECTION.surrogateValue)) != null) &&
          ((((Stella_Class)(slot.slotBaseType.surrogateValue)) != null) &&
           ((((Stella_Class)(slot.slotOwner.surrogateValue)) != null) &&
            (slot.primitiveP() &&
             ((((Symbol)(KeyValueList.dynamicSlotValue(slot.dynamicSlots, Stella.SYM_STELLA_SLOT_INVERSE, null))) != null) ||
              ((slot.slotDirectEquivalent != null) &&
               slot.slotDirectEquivalent.activeP()))))))));
    }
  }