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

java_lang_Short.h

00001 #ifndef xmogInc_javalangShort
00002 #define xmogInc_javalangShort
00003 
00004 #   if !defined(JMS_DECLSPEC )
00005 #       if defined(_MSC_VER)
00006 #           pragma message( "Relying on default definition of JMS_DECLSPEC " )
00007 #       endif /* defined(_MSC_VER) */
00008         // the following default definition works for all non-Windows platforms and for
00009         // executable projects on Windows where the sources are built directly into the binary
00010 #       define JMS_DECLSPEC 
00011 #   endif /* !defined(JMS_DECLSPEC ) */
00012 
00013     namespace java
00014     {
00015         namespace lang
00016         {
00017             class Class;
00018             class Object;
00019             class Short;
00020             class String;
00021         }
00022     }
00023 
00024 #   include "java_lang_Number.h"
00025 #   include "java_lang_Comparable.h"
00026 
00027     // work around MFC definitions of 'new' and 'delete' that cause compilation errors
00028 #   if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00029 #       if defined(new)
00030 #           undef new
00031 #       endif /* defined(new) */
00032 #       if defined(delete)
00033 #           undef delete
00034 #       endif /* defined(delete) */
00035 #   endif /* (XMOG_UNDEFINE_MEM_OPERATORS==1) */
00036 
00057     class JMS_DECLSPEC java::lang::Short : 
00058         public ::java::lang::Number,
00059         public ::java::lang::Comparable
00060     {
00061     public:
00062         enum 
00063         {
00064             xmogDefaultFlags = xmog_base::GLOBAL,
00065             xmogMajorVersion = 3,
00066             xmogMinorVersion = 2,
00067             xmogPatchVersion = 9,
00068             xmogBuildNumber = 2047
00069         };
00070 
00071     public:
00072 
00073         typedef ::xmog_java_array_template< ::java::lang::Short > array1D;
00074 
00075         typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::Short > > array2D;
00076 
00081         static xmog_short MAX_VALUE;
00082 
00087         static xmog_short MIN_VALUE;
00088 
00093         static ::java::lang::Class TYPE;
00094 
00095 
00097 
00114         Short( );
00115 
00128         Short( const ::java::lang::Short & _rhs );
00129 
00142         Short( jobject _local, xmog_flags f_xflags );
00143 
00156         Short( const ::xmog_null & _null_instance );
00157 
00168         Short( ::xmog_java_array * _arr, jint _index );
00169 
00183         Short( const ::java::lang::Short & _rhs, ::xmog_localenv * p_lxenv );
00184 
00196         XMOG_EXPLICIT Short( ::xmog_base * _delegate, bool _owns_delegate = true );
00197 
00199 
00210         Short( jshort value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00211 
00213 
00227         Short( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00228 
00230 
00246         Short( const ::java::lang::String & s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00247 
00249 
00256         ~Short( );
00257 
00270         java::lang::Short operator =( const java::lang::Short & _rhs );
00271 
00286         void operator delete( void * _ptr );
00287 
00288 #       if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00304             void operator delete( void * ptr, void * loc );
00305 #       endif /* (XMOG_SUPPORTS_PLACEMENT_DELETE==1) */
00306 
00321         void * operator new( size_t _size );
00322 
00323 #       if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00341             void * operator new( size_t _size, void * _ptr );
00342 #       endif /* (XMOG_SUPPORTS_PLACEMENT_NEW==1) */
00343 
00345 
00357         jbyte byteValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00358 
00382         jint compareTo( const ::java::lang::Object & o, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00383 
00401         jint compareTo( const ::java::lang::Short & anotherShort, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00402 
00448         static ::java::lang::Short decode( const ::java::lang::String & nm, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00449 
00461         jdouble doubleValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00462 
00464 
00485         static ::java::lang::Short dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00486 
00488 
00506         bool equals( const ::java::lang::Object & obj, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00507 
00519         jfloat floatValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00520 
00522 
00536         static ::xmog_java_class * get_class( );
00537 
00546         static ::xmog_java_class * get_element_class( );
00547 
00549 
00560         jint hashCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00561 
00573         jint intValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00574 
00586         jlong longValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00587 
00609         static jshort parseShort( const ::java::lang::String & s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00610 
00650         static jshort parseShort( const ::java::lang::String & s, jint radix, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00651 
00663         jshort shortValue( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00664 
00682         ::java::lang::String toString( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00683 
00698         static ::java::lang::String toString( jshort s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00699 
00726         static ::java::lang::Short valueOf( const ::java::lang::String & s, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00727 
00756         static ::java::lang::Short valueOf( const ::java::lang::String & s, jint radix, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00757 
00759 
00778         virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00780 
00781     };
00782 #endif /* xmogInc_javalangShort */
00783 

Generated on Fri Jun 16 10:18:56 2006 for JMS Courier for C++ by  doxygen 1.4.1