org.jacorb.orb
public class TypeCode extends TypeCode
Version: $Id: TypeCode.java,v 1.48 2006/07/10 13:34:12 alphonse.bendt Exp $
| Constructor Summary | |
|---|---|
| TypeCode(int _kind)
Constructor for primitive types, called only from
static initializer and org.jacorb.ir.TypeCodeUtil | |
| TypeCode(String id)
Constructor for recursive types | |
| TypeCode(int _kind, String _id, String _name, StructMember[] _members)
Constructor for tk_struct and tk_except | |
| TypeCode(String _id, String _name, TypeCode _discriminator_type, UnionMember[] _members)
Constructor for tk_union | |
| TypeCode(String _id, String _name, String[] _members)
Constructor for tk_enum | |
| TypeCode(int _kind, String _id, String _name, TypeCode _original_type)
Constructor for tk_alias, tk_value_box | |
| TypeCode(int _kind, String _id, String _name)
Constructor for tk_objref, tk_abstract_interface, tk_native,
tk_local_interface | |
| 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(short _digits, short _scale)
Constructor for tk_fixed | |
| TypeCode(String id, String _name, short type_modifier, TypeCode concrete_base, ValueMember[] members)
Constructor for tk_value | |
| Method Summary | |
|---|---|
| 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() |
| static String | idlTypeName(TypeCode typeCode)
convenience method |
| String | idlTypeName() convenience method |
| static boolean | isRecursive(TypeCode typeCode) |
| boolean | is_primitive() |
| boolean | is_recursive() |
| 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() |
| int | _kind() |
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).
Returns: an org.omg.CORBA.TypeCode value
Returns: TRUE if the argument is a JacORB typecode and is recursive.
Returns: True if this TypeCode represents a primitive type, false otherwise
Returns: TRUE is this TypeCode is recursive. Both the initial place holder TypeCode and the real TypeCode which replaces the place holder return TRUE.
Returns: the content type if the argument is an alias, or the argument itself otherwise