public CalendarDate encodeCalendarDate() {
    { DecodedDateTime timeStructure = this;

      return (CalendarDate.makeDateTime(((timeStructure.dateTimeYear != Stella.NULL_INTEGER) ? timeStructure.dateTimeYear : Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeYear), ((timeStructure.dateTimeMonth != Stella.NULL_INTEGER) ? timeStructure.dateTimeMonth : Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeMonth), ((timeStructure.dateTimeDay != Stella.NULL_INTEGER) ? timeStructure.dateTimeDay : Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeDay), ((timeStructure.dateTimeHour != Stella.NULL_INTEGER) ? timeStructure.dateTimeHour : Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeHour), ((timeStructure.dateTimeMinute != Stella.NULL_INTEGER) ? timeStructure.dateTimeMinute : Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeMinute), ((timeStructure.dateTimeSecond != Stella.NULL_INTEGER) ? timeStructure.dateTimeSecond : Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeSecond), ((timeStructure.dateTimeMillis != Stella.NULL_FLOAT) ? Native.round(timeStructure.dateTimeMillis) : Native.round(Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeMillis)), ((timeStructure.dateTimeZone != Stella.NULL_FLOAT) ? timeStructure.dateTimeZone : Stella.$DEFAULT_DECODED_DATE_TIME$.dateTimeZone)));
    }
  }