Expand description
Mapping of IDL primitives to Java type strings.
Follows OMG IDL4-Java-Mapping v1.0 §6 (Type Mapping). Java has no native unsigned integer types — the spec-conformant workaround:
unsigned short→ Javaint(notshort, to cover the full value range).unsigned long→ Javalong(notint).unsigned long long→ Javalong(with doc note; the default is thelongvariant;BigIntegerwould be the full solution, but is outside the current scope).
boolean → boolean, octet → byte, char/wchar → char,
string/wstring → String, float/double → float/double.
Functions§
- floating_
to_ java - Mapping from floating-point subtypes.
long doubleis outside the current scope and is handled intypespec_to_javaascrate::error::JavaGenError::UnsupportedConstruct. - floating_
to_ java_ boxed - Boxed variant for floating-point subtypes.
- integer_
to_ java - Mapping from integer subtypes.
- integer_
to_ java_ boxed - Boxed variant for integer subtypes.
- is_
unsigned - Returns
trueif an IDL integer type requires the Java unsigned workaround (doc note in the generator). - primitive_
to_ java - Mapping from a
PrimitiveTypeto its Java type. - primitive_
to_ java_ boxed - Boxed wrapper class for a primitive Java type, used for generics
(e.g.
List<Integer>instead ofList<int>).