public String getTypeName() { String ret = null; if (typeCode != null) { TCKind kind = typeCode.kind(); if (kind != null) { switch (kind.value()) { case TCKind._tk_long: ret = "int"; break; case TCKind._tk_ulong: ret = "int"; break; case TCKind._tk_longlong: ret = "long"; break; case TCKind._tk_ulonglong: ret = "long"; break; case TCKind._tk_short: ret = "short"; break; case TCKind._tk_ushort: ret = "short"; break; case TCKind._tk_float: ret = "float"; break; case TCKind._tk_double: ret = "double"; break; case TCKind._tk_char: ret = "char"; break; case TCKind._tk_wchar: ret = "char"; break; case TCKind._tk_boolean: ret = "boolean"; break; case TCKind._tk_octet: ret = "byte"; break; case TCKind._tk_string: ret = "java.lang.String"; break; case TCKind._tk_wstring: ret = "java.lang.String"; break; case TCKind._tk_void: ret = "void"; break; default: log.error("Invalid primitive data type"); break; } } } return ret; }
public TypeCode get_primitive_tc(TCKind tckind) { return get_primitive_tc(tckind.value()); }