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 |
---|---|
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 |
equals(Object obj) |
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. |
int |
hashCode() |
String |
id() |
String |
idlTypeName()
convenience method
|
static String |
idlTypeName(TypeCode typeCode)
convenience method
|
boolean |
is_primitive() |
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 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 static boolean isRecursive(TypeCode typeCode)
public String idlTypeName()
public static final TypeCode originalType(TypeCode typeCode)
public static TypeCode create_tc(Class clazz)
Copyright © 2017 JacORB. All rights reserved.