// ------------------------------------------------------------------ // ciArrayKlass::element_type // // What type is obtained when this array is indexed once?
ciType* ciArrayKlass::element_type() { if (is_type_array_klass()) { return ciType::make(as_type_array_klass()->element_type());
} else { return as_obj_array_klass()->element_klass()->as_klass();
}
}
// ------------------------------------------------------------------ // ciArrayKlass::base_element_type // // What type is obtained when this array is indexed as many times as possible?
ciType* ciArrayKlass::base_element_type() { if (is_type_array_klass()) { return ciType::make(as_type_array_klass()->element_type());
} else {
ciKlass* ek = as_obj_array_klass()->base_element_klass(); if (ek->is_type_array_klass()) { return ciType::make(ek->as_type_array_klass()->element_type());
} return ek;
}
}
// ------------------------------------------------------------------ // ciArrayKlass::base_element_type // // What type is obtained when this array is indexed as many times as possible?
ciArrayKlass* ciArrayKlass::make(ciType* element_type) { if (element_type->is_primitive_type()) { return ciTypeArrayKlass::make(element_type->basic_type());
} else { return ciObjArrayKlass::make(element_type->as_klass());
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.