TypeCode
public TypeCode(String id)
Constructor for recursive types
TypeCode
public TypeCode(String _id,
String _name,
TypeCode _discriminator_type,
UnionMember _members)
Constructor for tk_union
TypeCode
public TypeCode(String id,
String _name,
short type_modifier,
TypeCode concrete_base,
ValueMember members)
Constructor for tk_value
TypeCode
public TypeCode(int _kind)
Constructor for primitive types, called only from
static initializer and org.jacorb.ir.TypeCodeUtil
TypeCode
public TypeCode(int _kind,
String _id,
String _name,
StructMember _members)
Constructor for tk_struct and tk_except
TypeCode
public TypeCode(int _kind,
String _id,
String _name,
TypeCode _original_type)
Constructor for tk_alias, tk_value_box
TypeCode
public TypeCode(int _kind,
int _bound)
Constructor for tk_string, tk_wstring
TypeCode
public TypeCode(int _kind,
int _bound,
TypeCode _element_type)
Constructor for tk_sequence, tk_array
TypeCode
public TypeCode(int _kind,
java.lang.String _id,
java.lang.String _name)
Constructor for tk_objref, tk_abstract_interface, tk_native,
tk_local_interface
TypeCode
public TypeCode(java.lang.String _id,
java.lang.String _name,
java.lang.String[] _members)
Constructor for tk_enum
TypeCode
public TypeCode(short _digits,
short _scale)
Constructor for tk_fixed
create_tc
public static TypeCode create_tc(Class clz)
Creates a TypeCode for an arbitrary Java class.
Right now, this only covers RMI classes, not those derived from IDL.
default_index
public int default_index()
throws BadKind
- default_index in interface TypeCode
equal
public boolean equal(TypeCode tc)
check TypeCodes for equality
- equal in interface TypeCode
equivalent
public boolean equivalent(TypeCode tc)
less strict equivalence check, unwinds aliases
- equivalent in interface TypeCode
fixed_digits
public short fixed_digits()
throws BadKind
- fixed_digits in interface TypeCode
fixed_scale
public short fixed_scale()
throws BadKind
- fixed_scale in interface TypeCode
get_compact_typecode
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 interface TypeCode
- an
org.omg.CORBA.TypeCode
value
idlTypeName
public String idlTypeName()
convenience method
idlTypeName
public static String idlTypeName(TypeCode tc)
convenience method
isRecursive
public static boolean isRecursive(TypeCode tc)
- TRUE if the argument is a JacORB typecode and is recursive.
is_primitive
public boolean is_primitive()
- True if this TypeCode represents a primitive type,
false otherwise
is_recursive
public boolean is_recursive()
- TRUE is this TypeCode is recursive. Both the initial
place holder TypeCode and the real TypeCode which replaces
the place holder return TRUE.
member_count
public int member_count()
throws BadKind
- member_count in interface TypeCode
member_name
public java.lang.String member_name(int index)
throws BadKind,
Bounds
- member_name in interface TypeCode
member_visibility
public short member_visibility(int index)
throws BadKind,
Bounds
- member_visibility in interface TypeCode
name
public java.lang.String name()
throws BadKind
- name in interface TypeCode
originalType
public static TypeCode originalType(TypeCode tc)
- the content type if the argument is an alias, or the argument
itself otherwise
toSequence
public void toSequence()
toString
public String toString()
type_modifier
public short type_modifier()
throws BadKind
- type_modifier in interface TypeCode