1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_text_MessageFormat__
|
5 |
|
|
#define __java_text_MessageFormat__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/text/Format.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 |
|
|
namespace text
|
23 |
|
|
{
|
24 |
|
|
class FormatCharacterIterator;
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
namespace java
|
29 |
|
|
{
|
30 |
|
|
namespace text
|
31 |
|
|
{
|
32 |
|
|
class AttributedCharacterIterator;
|
33 |
|
|
class FieldPosition;
|
34 |
|
|
class Format;
|
35 |
|
|
class MessageFormat;
|
36 |
|
|
class MessageFormat$MessageFormatElement;
|
37 |
|
|
class ParsePosition;
|
38 |
|
|
}
|
39 |
|
|
}
|
40 |
|
|
}
|
41 |
|
|
|
42 |
|
|
class java::text::MessageFormat : public ::java::text::Format
|
43 |
|
|
{
|
44 |
|
|
|
45 |
|
|
static jint scanString(::java::lang::String *, jint, ::gnu::java::lang::CPStringBuilder *);
|
46 |
|
|
static jint scanFormatElement(::java::lang::String *, jint, ::gnu::java::lang::CPStringBuilder *, jchar);
|
47 |
|
|
static jint scanFormat(::java::lang::String *, jint, ::gnu::java::lang::CPStringBuilder *, ::java::util::List *, ::java::util::Locale *);
|
48 |
|
|
public:
|
49 |
|
|
virtual void applyPattern(::java::lang::String *);
|
50 |
|
|
virtual ::java::lang::Object * clone();
|
51 |
|
|
virtual jboolean equals(::java::lang::Object *);
|
52 |
|
|
virtual ::java::text::AttributedCharacterIterator * formatToCharacterIterator(::java::lang::Object *);
|
53 |
|
|
static ::java::lang::String * format(::java::lang::String *, JArray< ::java::lang::Object * > *);
|
54 |
|
|
virtual ::java::lang::StringBuffer * format(JArray< ::java::lang::Object * > *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
|
55 |
|
|
private:
|
56 |
|
|
::java::lang::StringBuffer * formatInternal(JArray< ::java::lang::Object * > *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *, ::gnu::java::text::FormatCharacterIterator *);
|
57 |
|
|
public:
|
58 |
|
|
virtual ::java::lang::StringBuffer * format(::java::lang::Object *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
|
59 |
|
|
virtual JArray< ::java::text::Format * > * getFormats();
|
60 |
|
|
virtual ::java::util::Locale * getLocale();
|
61 |
|
|
virtual jint hashCode();
|
62 |
|
|
private:
|
63 |
|
|
MessageFormat();
|
64 |
|
|
public:
|
65 |
|
|
MessageFormat(::java::lang::String *);
|
66 |
|
|
MessageFormat(::java::lang::String *, ::java::util::Locale *);
|
67 |
|
|
virtual JArray< ::java::lang::Object * > * parse(::java::lang::String *, ::java::text::ParsePosition *);
|
68 |
|
|
virtual JArray< ::java::lang::Object * > * parse(::java::lang::String *);
|
69 |
|
|
virtual ::java::lang::Object * parseObject(::java::lang::String *, ::java::text::ParsePosition *);
|
70 |
|
|
virtual void setFormat(jint, ::java::text::Format *);
|
71 |
|
|
virtual void setFormats(JArray< ::java::text::Format * > *);
|
72 |
|
|
virtual void setLocale(::java::util::Locale *);
|
73 |
|
|
virtual ::java::lang::String * toPattern();
|
74 |
|
|
virtual JArray< ::java::text::Format * > * getFormatsByArgumentIndex();
|
75 |
|
|
virtual void setFormatByArgumentIndex(jint, ::java::text::Format *);
|
76 |
|
|
virtual void setFormatsByArgumentIndex(JArray< ::java::text::Format * > *);
|
77 |
|
|
private:
|
78 |
|
|
static const jlong serialVersionUID = 6479157306784022952LL;
|
79 |
|
|
::java::lang::String * __attribute__((aligned(__alignof__( ::java::text::Format)))) pattern;
|
80 |
|
|
::java::util::Locale * locale;
|
81 |
|
|
JArray< ::java::text::MessageFormat$MessageFormatElement * > * elements;
|
82 |
|
|
::java::lang::String * leader;
|
83 |
|
|
public:
|
84 |
|
|
static ::java::lang::Class class$;
|
85 |
|
|
};
|
86 |
|
|
|
87 |
|
|
#endif // __java_text_MessageFormat__
|