Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

java::lang::Number Class Reference

The abstract class Number is the superclass of classes BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, and Short. More...

#include <java_lang_Number.h>

Inheritance diagram for java::lang::Number:

Inheritance graph
[legend]
Collaboration diagram for java::lang::Number:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9,
  xmogBuildNumber = 2047
}
typedef ::xmog_java_array_template<
::java::lang::Number
array1D
typedef ::xmog_java_array_template<
::xmog_java_array_template<
::java::lang::Number > > 
array2D

Public Member Functions

virtual jbyte byteValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Returns the value of the specified number as a byte.
virtual jdouble doubleValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Returns the value of the specified number as a double.
virtual jfloat floatValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Returns the value of the specified number as a float.
virtual jint intValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Returns the value of the specified number as an int.
virtual jlong longValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Returns the value of the specified number as a long.
 Number (::xmog_dummy _use_java_ctor,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
virtual jshort shortValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Returns the value of the specified number as a short.

Detailed Description

The abstract class Number is the superclass of classes BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, and Short.

Subclasses of Number must provide methods to convert the represented numeric value to byte, double, float, int, long, and short.

Author:
Lee Boynton

Arthur van Hoff


Constructor & Destructor Documentation

java::lang::Number::Number ::xmog_dummy  _use_java_ctor,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Parameters:
_use_java_ctor indicates that you want to delegate to a Java constructor whose natural proxy conflicts with a C++ requirement.
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.


Member Function Documentation

virtual jbyte java::lang::Number::byteValue ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
[virtual]
 

Returns the value of the specified number as a byte.

This may involve rounding or truncation.

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the numeric value represented by this object after conversion to type byte.

Reimplemented in java::lang::Byte, java::lang::Double, java::lang::Float, java::lang::Integer, java::lang::Long, and java::lang::Short.

virtual jdouble java::lang::Number::doubleValue ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
[virtual]
 

Returns the value of the specified number as a double.

This may involve rounding.

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the numeric value represented by this object after conversion to type double.

Reimplemented in java::lang::Byte, java::lang::Double, java::lang::Float, java::lang::Integer, java::lang::Long, and java::lang::Short.

virtual jfloat java::lang::Number::floatValue ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
[virtual]
 

Returns the value of the specified number as a float.

This may involve rounding.

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the numeric value represented by this object after conversion to type float.

Reimplemented in java::lang::Byte, java::lang::Double, java::lang::Float, java::lang::Integer, java::lang::Long, and java::lang::Short.

virtual jint java::lang::Number::intValue ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
[virtual]
 

Returns the value of the specified number as an int.

This may involve rounding or truncation.

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the numeric value represented by this object after conversion to type int.

Reimplemented in java::lang::Byte, java::lang::Double, java::lang::Float, java::lang::Integer, java::lang::Long, and java::lang::Short.

virtual jlong java::lang::Number::longValue ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
[virtual]
 

Returns the value of the specified number as a long.

This may involve rounding or truncation.

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the numeric value represented by this object after conversion to type long.

Reimplemented in java::lang::Byte, java::lang::Double, java::lang::Float, java::lang::Integer, java::lang::Long, and java::lang::Short.

virtual jshort java::lang::Number::shortValue ::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
[virtual]
 

Returns the value of the specified number as a short.

This may involve rounding or truncation.

Parameters:
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the numeric value represented by this object after conversion to type short.

Reimplemented in java::lang::Byte, java::lang::Double, java::lang::Float, java::lang::Integer, java::lang::Long, and java::lang::Short.


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 10:19:29 2006 for JMS Courier for C++ by  doxygen 1.4.1