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

88 lines
2.9 KiB
C++

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_text_SimpleDateFormat__
#define __java_text_SimpleDateFormat__
#pragma interface
#include <java/text/DateFormat.h>
extern "Java"
{
namespace gnu
{
namespace java
{
namespace text
{
class FormatBuffer;
}
}
}
namespace java
{
namespace text
{
class AttributedCharacterIterator;
class DateFormatSymbols;
class FieldPosition;
class ParsePosition;
class SimpleDateFormat;
}
}
}
class java::text::SimpleDateFormat : public ::java::text::DateFormat
{
void readObject(::java::io::ObjectInputStream *);
void compileFormat(::java::lang::String *);
public:
virtual ::java::lang::String * toString();
SimpleDateFormat();
SimpleDateFormat(::java::lang::String *);
SimpleDateFormat(::java::lang::String *, ::java::util::Locale *);
SimpleDateFormat(::java::lang::String *, ::java::text::DateFormatSymbols *);
virtual ::java::lang::String * toPattern();
virtual ::java::lang::String * toLocalizedPattern();
virtual void applyPattern(::java::lang::String *);
virtual void applyLocalizedPattern(::java::lang::String *);
private:
::java::lang::String * translateLocalizedPattern(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
public:
virtual ::java::util::Date * get2DigitYearStart();
virtual void set2DigitYearStart(::java::util::Date *);
virtual ::java::text::DateFormatSymbols * getDateFormatSymbols();
virtual void setDateFormatSymbols(::java::text::DateFormatSymbols *);
virtual jboolean equals(::java::lang::Object *);
virtual jint hashCode();
private:
void formatWithAttribute(::java::util::Date *, ::gnu::java::text::FormatBuffer *, ::java::text::FieldPosition *);
public:
virtual ::java::lang::StringBuffer * format(::java::util::Date *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
virtual ::java::text::AttributedCharacterIterator * formatToCharacterIterator(::java::lang::Object *);
private:
void withLeadingZeros(jint, jint, ::gnu::java::text::FormatBuffer *);
jboolean expect(::java::lang::String *, ::java::text::ParsePosition *, jchar);
public:
virtual ::java::util::Date * parse(::java::lang::String *, ::java::text::ParsePosition *);
private:
::java::lang::Integer * computeOffset(::java::lang::String *, ::java::text::ParsePosition *);
void computeCenturyStart();
public:
virtual ::java::lang::Object * clone();
private:
::java::util::ArrayList * __attribute__((aligned(__alignof__( ::java::text::DateFormat)))) tokens;
::java::text::DateFormatSymbols * formatData;
::java::util::Date * defaultCenturyStart;
jint defaultCentury;
::java::lang::String * pattern;
jint serialVersionOnStream;
static const jlong serialVersionUID = 4774881970558875024LL;
static ::java::lang::String * standardChars;
public:
static ::java::lang::Class class$;
};
#endif // __java_text_SimpleDateFormat__