public class TypeCode extends TypeCode
Constructor and Description |
---|
TypeCode(int _kind)
Constructor for primitive types, called only from
static initializer and org.jacorb.ir.TypeCodeUtil
|
TypeCode(int _kind,
int _bound)
Constructor for tk_string, tk_wstring
|
TypeCode(int _kind,
int _bound,
TypeCode _element_type)
Constructor for tk_sequence, tk_array
|
TypeCode(int _kind,
String _id,
String _name)
Constructor for tk_objref, tk_abstract_interface, tk_native,
tk_local_interface
|
TypeCode(int _kind,
String _id,
String _name,
StructMember[] _members)
Constructor for tk_struct and tk_except
|
TypeCode(int _kind,
String _id,
String _name,
TypeCode _original_type)
Constructor for tk_alias, tk_value_box
|
TypeCode(short _digits,
short _scale)
Constructor for tk_fixed
|
TypeCode(String id)
Constructor for recursive types
|
TypeCode(String id,
String _name,
short type_modifier,
TypeCode concrete_base,
ValueMember[] members)
Constructor for tk_value
|
TypeCode(String _id,
String _name,
String[] _members)
Constructor for tk_enum
|
TypeCode(String _id,
String _name,
TypeCode _discriminator_type,
UnionMember[] _members)
Constructor for tk_union
|
Modifier and Type | Method and Description |
---|---|
int |
_kind() |
TypeCode |
concrete_base_type() |
TypeCode |
content_type() |
static TypeCode |
create_tc(Class clazz)
Creates a TypeCode for an arbitrary Java class.
|
int |
default_index() |
TypeCode |
discriminator_type() |
boolean |
equal(TypeCode tc)
check TypeCodes for equality
|
boolean |
equivalent(TypeCode tc)
less strict equivalence check, unwinds aliases
|
short |
fixed_digits() |
short |
fixed_scale() |
TypeCode |
get_compact_typecode()
get_compact_typecode returns a new TypeCode with all
type and member information removed. |
String |
id() |
String |
idlTypeName()
convenience method
|
static String |
idlTypeName(TypeCode typeCode)
convenience method
|
boolean |
is_primitive() |
boolean |
is_recursive() |
static boolean |
isRecursive(TypeCode typeCode) |
TCKind |
kind() |
int |
length() |
int |
member_count() |
Any |
member_label(int index) |
String |
member_name(int index) |
TypeCode |
member_type(int index) |
short |
member_visibility(int index) |
String |
name() |
static TypeCode |
originalType(TypeCode typeCode) |
String |
toString() |
short |
type_modifier() |
public TypeCode(int _kind)
public TypeCode(String id)
public TypeCode(int _kind, String _id, String _name, StructMember[] _members)
public TypeCode(String _id, String _name, TypeCode _discriminator_type, UnionMember[] _members)
public TypeCode(int _kind, String _id, String _name, TypeCode _original_type)
public TypeCode(int _kind, String _id, String _name)
public TypeCode(int _kind, int _bound)
public TypeCode(int _kind, int _bound, TypeCode _element_type)
public TypeCode(short _digits, short _scale)
public TypeCode(String id, String _name, short type_modifier, TypeCode concrete_base, ValueMember[] members)
public boolean is_primitive()
public boolean equal(TypeCode tc)
public int _kind()
public int member_count() throws BadKind
member_count
in class TypeCode
BadKind
public String member_name(int index) throws BadKind, Bounds
member_name
in class TypeCode
BadKind
Bounds
public TypeCode member_type(int index) throws BadKind, Bounds
member_type
in class TypeCode
BadKind
Bounds
public Any member_label(int index) throws BadKind, Bounds
member_label
in class TypeCode
BadKind
Bounds
public TypeCode discriminator_type() throws BadKind
discriminator_type
in class TypeCode
BadKind
public int default_index() throws BadKind
default_index
in class TypeCode
BadKind
public TypeCode content_type() throws BadKind
content_type
in class TypeCode
BadKind
public short fixed_digits() throws BadKind
fixed_digits
in class TypeCode
BadKind
public short fixed_scale() throws BadKind
fixed_scale
in class TypeCode
BadKind
public TypeCode get_compact_typecode()
get_compact_typecode
returns a new TypeCode with all
type and member information removed. RepositoryID and alias are
preserved.
This method effectively clones the original typecode - simpler than
trying to work out what type so what to duplicate (and compact).get_compact_typecode
in class TypeCode
org.omg.CORBA.TypeCode
valuepublic short member_visibility(int index) throws BadKind, Bounds
member_visibility
in class TypeCode
BadKind
Bounds
public short type_modifier() throws BadKind
type_modifier
in class TypeCode
BadKind
public TypeCode concrete_base_type() throws BadKind
concrete_base_type
in class TypeCode
BadKind
public boolean equivalent(TypeCode tc)
equivalent
in class TypeCode
public boolean is_recursive()
public static boolean isRecursive(TypeCode typeCode)
public String idlTypeName()
public static final TypeCode originalType(TypeCode typeCode)
Copyright © 2016 JacORB. All rights reserved.