CCAFFEINE  0.8.8
IntegerJC.h
00001 #ifndef IntegerJC_h_seen
00002 #define IntegerJC_h_seen
00003 
00004 namespace jcpp {
00005 
00006 // requires
00007 // #include "jc++/jc++.h"
00008 // #include "jc++/lang/Object.h"
00010 class IntegerJC : public virtual Object {
00011 
00012 private:
00013   int value;
00014 
00015   static char forDigit(int digit, int radix);
00016 
00018   static char *toUnsignedString(int i, int bits);
00019 
00020 public:
00021 
00022   IntegerJC(char *s, int & NumberFormatErr);
00023 
00024   IntegerJC(int value_);
00025 
00026   double doubleValue();
00027 
00028   boolean equals(Object *obj);
00029 
00030   float floatValue();
00031 
00032   int intValue();
00033 
00034   long longValue();
00035 
00036   CFREE char *toString();
00037 
00040   static int parseInt(char * s, int & NumberFormatErr);
00041 
00042 // completely buggy. java >>>= is what in c?
00043   static CFREE char *toBinaryString(int i);
00044 
00045 // completely buggy. java >>>= is what in c?
00046   static CFREE char *toHexString(int i);
00047 
00048 // completely buggy. java >>>= is what in c?
00049   static CFREE char *toOctalString(int i);
00050 
00051   static CFREE char *toString(int i);
00052 
00053 // completely buggy. java >>>= is what in c?
00054   static CFREE char *toString(int i, int radix);
00055 
00056   static IntegerJC *valueOf(char * s, int & NumberFormatErr);
00057 
00058 };
00059 
00060 } ENDSEMI //jcpp
00061 
00062 #endif // IntegerJC_h_seen