1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_util_Formatter__
|
5 |
|
|
#define __java_util_Formatter__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace lang
|
19 |
|
|
{
|
20 |
|
|
class CPStringBuilder;
|
21 |
|
|
}
|
22 |
|
|
}
|
23 |
|
|
}
|
24 |
|
|
namespace java
|
25 |
|
|
{
|
26 |
|
|
namespace text
|
27 |
|
|
{
|
28 |
|
|
class DateFormatSymbols;
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
}
|
32 |
|
|
|
33 |
|
|
class java::util::Formatter : public ::java::lang::Object
|
34 |
|
|
{
|
35 |
|
|
|
36 |
|
|
public:
|
37 |
|
|
Formatter();
|
38 |
|
|
Formatter(::java::util::Locale *);
|
39 |
|
|
Formatter(::java::lang::Appendable *);
|
40 |
|
|
Formatter(::java::lang::Appendable *, ::java::util::Locale *);
|
41 |
|
|
Formatter(::java::io::File *);
|
42 |
|
|
Formatter(::java::io::File *, ::java::lang::String *);
|
43 |
|
|
Formatter(::java::io::File *, ::java::lang::String *, ::java::util::Locale *);
|
44 |
|
|
Formatter(::java::io::OutputStream *);
|
45 |
|
|
Formatter(::java::io::OutputStream *, ::java::lang::String *);
|
46 |
|
|
Formatter(::java::io::OutputStream *, ::java::lang::String *, ::java::util::Locale *);
|
47 |
|
|
Formatter(::java::io::PrintStream *);
|
48 |
|
|
Formatter(::java::lang::String *);
|
49 |
|
|
Formatter(::java::lang::String *, ::java::lang::String *);
|
50 |
|
|
Formatter(::java::lang::String *, ::java::lang::String *, ::java::util::Locale *);
|
51 |
|
|
void close();
|
52 |
|
|
void flush();
|
53 |
|
|
private:
|
54 |
|
|
::java::lang::String * getName(jint);
|
55 |
|
|
void checkFlags(jint, jint, jchar);
|
56 |
|
|
void noPrecision(jint);
|
57 |
|
|
void applyLocalization(::gnu::java::lang::CPStringBuilder *, jint, jint, jboolean);
|
58 |
|
|
void genericFormat(::java::lang::String *, jint, jint, jint);
|
59 |
|
|
void booleanFormat(::java::lang::Object *, jint, jint, jint, jchar);
|
60 |
|
|
void hashCodeFormat(::java::lang::Object *, jint, jint, jint, jchar);
|
61 |
|
|
void stringFormat(::java::lang::Object *, jint, jint, jint, jchar);
|
62 |
|
|
void characterFormat(::java::lang::Object *, jint, jint, jint, jchar);
|
63 |
|
|
void percentFormat(jint, jint, jint);
|
64 |
|
|
void newLineFormat(jint, jint, jint);
|
65 |
|
|
::gnu::java::lang::CPStringBuilder * basicIntegralConversion(::java::lang::Object *, jint, jint, jint, jint, jchar);
|
66 |
|
|
void hexOrOctalConversion(::java::lang::Object *, jint, jint, jint, jint, jchar);
|
67 |
|
|
void decimalConversion(::java::lang::Object *, jint, jint, jint, jchar);
|
68 |
|
|
void singleDateTimeConversion(::gnu::java::lang::CPStringBuilder *, ::java::util::Calendar *, jchar, ::java::text::DateFormatSymbols *);
|
69 |
|
|
void dateTimeConversion(::java::lang::Object *, jint, jint, jint, jchar, jchar);
|
70 |
|
|
void advance();
|
71 |
|
|
jint parseInt();
|
72 |
|
|
jint parseArgumentIndex();
|
73 |
|
|
jint parseFlags();
|
74 |
|
|
jint parseWidth();
|
75 |
|
|
jint parsePrecision();
|
76 |
|
|
public:
|
77 |
|
|
::java::util::Formatter * format(::java::util::Locale *, ::java::lang::String *, JArray< ::java::lang::Object * > *);
|
78 |
|
|
::java::util::Formatter * format(::java::lang::String *, JArray< ::java::lang::Object * > *);
|
79 |
|
|
::java::io::IOException * ioException();
|
80 |
|
|
::java::util::Locale * locale();
|
81 |
|
|
::java::lang::Appendable * out();
|
82 |
|
|
::java::lang::String * toString();
|
83 |
|
|
private:
|
84 |
|
|
::java::lang::Appendable * __attribute__((aligned(__alignof__( ::java::lang::Object)))) out__;
|
85 |
|
|
::java::util::Locale * locale__;
|
86 |
|
|
jboolean closed;
|
87 |
|
|
::java::io::IOException * ioException__;
|
88 |
|
|
::java::lang::String * format__;
|
89 |
|
|
jint index;
|
90 |
|
|
jint length;
|
91 |
|
|
::java::util::Locale * fmtLocale;
|
92 |
|
|
static ::java::lang::String * FLAGS;
|
93 |
|
|
static ::java::lang::String * lineSeparator;
|
94 |
|
|
public: // actually package-private
|
95 |
|
|
static jboolean $assertionsDisabled;
|
96 |
|
|
public:
|
97 |
|
|
static ::java::lang::Class class$;
|
98 |
|
|
};
|
99 |
|
|
|
100 |
|
|
#endif // __java_util_Formatter__
|