gcc/libjava/java/text/MessageFormat.h
Tom Tromey 97b8365caf Merged gcj-eclipse branch to trunk.
From-SVN: r120621
2007-01-09 19:58:05 +00:00

84 lines
3.2 KiB
C++

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_text_MessageFormat__
#define __java_text_MessageFormat__
#pragma interface
#include <java/text/Format.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace java
{
namespace text
{
class FormatCharacterIterator;
}
}
}
namespace java
{
namespace text
{
class AttributedCharacterIterator;
class FieldPosition;
class Format;
class MessageFormat;
class MessageFormat$MessageFormatElement;
class ParsePosition;
}
}
}
class java::text::MessageFormat : public ::java::text::Format
{
static jint scanString(::java::lang::String *, jint, ::java::lang::StringBuffer *);
static jint scanFormatElement(::java::lang::String *, jint, ::java::lang::StringBuffer *, jchar);
static jint scanFormat(::java::lang::String *, jint, ::java::lang::StringBuffer *, ::java::util::Vector *, ::java::util::Locale *);
public:
virtual void applyPattern(::java::lang::String *);
virtual ::java::lang::Object * clone();
virtual jboolean equals(::java::lang::Object *);
virtual ::java::text::AttributedCharacterIterator * formatToCharacterIterator(::java::lang::Object *);
static ::java::lang::String * format(::java::lang::String *, JArray< ::java::lang::Object * > *);
virtual ::java::lang::StringBuffer * format(JArray< ::java::lang::Object * > *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
private:
::java::lang::StringBuffer * formatInternal(JArray< ::java::lang::Object * > *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *, ::gnu::java::text::FormatCharacterIterator *);
public:
virtual ::java::lang::StringBuffer * format(::java::lang::Object *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
virtual JArray< ::java::text::Format * > * getFormats();
virtual ::java::util::Locale * getLocale();
virtual jint hashCode();
private:
MessageFormat();
public:
MessageFormat(::java::lang::String *);
MessageFormat(::java::lang::String *, ::java::util::Locale *);
virtual JArray< ::java::lang::Object * > * parse(::java::lang::String *, ::java::text::ParsePosition *);
virtual JArray< ::java::lang::Object * > * parse(::java::lang::String *);
virtual ::java::lang::Object * parseObject(::java::lang::String *, ::java::text::ParsePosition *);
virtual void setFormat(jint, ::java::text::Format *);
virtual void setFormats(JArray< ::java::text::Format * > *);
virtual void setLocale(::java::util::Locale *);
virtual ::java::lang::String * toPattern();
virtual JArray< ::java::text::Format * > * getFormatsByArgumentIndex();
virtual void setFormatByArgumentIndex(jint, ::java::text::Format *);
virtual void setFormatsByArgumentIndex(JArray< ::java::text::Format * > *);
private:
static const jlong serialVersionUID = 6479157306784022952LL;
::java::lang::String * __attribute__((aligned(__alignof__( ::java::text::Format)))) pattern;
::java::util::Locale * locale;
JArray< ::java::text::MessageFormat$MessageFormatElement * > * elements;
::java::lang::String * leader;
public:
static ::java::lang::Class class$;
};
#endif // __java_text_MessageFormat__