Previous ION Java User's Guide: ION Java Class and Method Reference Next

type()

The type() method returns the type of the value the variable contains. This return value is one of the constant type codes which are a part of this object.

Syntax

public final int type()

Return Value

This function returns the type code of the variable. For information on type codes, see IDL Type Codes and Names of the IDL Reference Guide.

Arguments

None.

Exceptions

None.

Example

int typeCode = myVariable.type();  

  IDL Online Help (March 06, 2007)