#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License
# 2.0 and the Server Side Public License, v 1; you may not use this file except
# in compliance with, at your election, the Elastic License 2.0 or the Server
# Side Public License, v 1.
#

#
# Painless definition file. This defines the hierarchy of classes,
# what methods and fields they have, etc.
#

#### Interfaces

class java.text.AttributedCharacterIterator {
  Set getAllAttributeKeys()
  def getAttribute(AttributedCharacterIterator.Attribute)
  Map getAttributes()
  int getRunLimit()
  int getRunLimit(Set)
  int getRunStart()
  int getRunStart(Set)
}

class java.text.CharacterIterator {
  char DONE
  def clone()
  char current()
  char first()
  int getBeginIndex()
  int getEndIndex()
  int getIndex()
  char last()
  char next()
  char previous()
  char setIndex(int)
}

#### Classes

class java.text.Annotation {
  (Object)
  def getValue()
}

class java.text.AttributedCharacterIterator$Attribute {
  AttributedCharacterIterator.Attribute INPUT_METHOD_SEGMENT
  AttributedCharacterIterator.Attribute LANGUAGE
  AttributedCharacterIterator.Attribute READING
}

class java.text.AttributedString {
  (String)
  (String,Map)
  void addAttribute(AttributedCharacterIterator.Attribute,Object)
  void addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)
  void addAttributes(Map,int,int)
  AttributedCharacterIterator getIterator()
  AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute[])
  AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute[],int,int)
}

class java.text.Bidi {
  int DIRECTION_DEFAULT_LEFT_TO_RIGHT
  int DIRECTION_DEFAULT_RIGHT_TO_LEFT
  int DIRECTION_LEFT_TO_RIGHT
  int DIRECTION_RIGHT_TO_LEFT
  (AttributedCharacterIterator)
  (char[],int,byte[],int,int,int)
  (String,int)
  boolean baseIsLeftToRight()
  Bidi createLineBidi(int,int)
  int getBaseLevel()
  int getLength()
  int getLevelAt(int)
  int getRunCount()
  int getRunLevel(int)
  int getRunLimit(int)
  int getRunStart(int)
  boolean isLeftToRight()
  boolean isMixed()
  boolean isRightToLeft()
  void reorderVisually(byte[],int,Object[],int,int)
  boolean requiresBidi(char[],int,int)
}

class java.text.BreakIterator {
  int DONE
  def clone()
  int current()
  int first()
  int following(int)
  Locale[] getAvailableLocales()
  BreakIterator getCharacterInstance()
  BreakIterator getCharacterInstance(Locale)
  BreakIterator getLineInstance()
  BreakIterator getLineInstance(Locale)
  BreakIterator getSentenceInstance()
  BreakIterator getSentenceInstance(Locale)
  CharacterIterator getText()
  BreakIterator getWordInstance()
  BreakIterator getWordInstance(Locale)
  boolean isBoundary(int)
  int last()
  int next()
  int next(int)
  int preceding(int)
  int previous()
  void setText(String)
}

class java.text.ChoiceFormat {
  (double[],String[])
  (String)
  void applyPattern(String)
  def[] getFormats()
  double[] getLimits()
  double nextDouble(double)
  double nextDouble(double,boolean)
  double previousDouble(double)
  void setChoices(double[],String[])
  String toPattern()
}

class java.text.CollationElementIterator {
  int NULLORDER
  int getMaxExpansion(int)
  int getOffset()
  int next()
  int previous()
  int primaryOrder(int)
  void reset()
  short secondaryOrder(int)
  void setOffset(int)
  void setText(String)
  short tertiaryOrder(int)
}

class java.text.CollationKey {
  int compareTo(CollationKey)
  String getSourceString()
  byte[] toByteArray()
}

class java.text.Collator {
  int CANONICAL_DECOMPOSITION
  int FULL_DECOMPOSITION
  int IDENTICAL
  int NO_DECOMPOSITION
  int PRIMARY
  int SECONDARY
  int TERTIARY
  def clone()
  boolean equals(String,String)
  Locale[] getAvailableLocales()
  CollationKey getCollationKey(String)
  int getDecomposition()
  Collator getInstance()
  Collator getInstance(Locale)
  int getStrength()
  void setDecomposition(int)
  void setStrength(int)
}

class java.text.DateFormat {
  int AM_PM_FIELD
  int DATE_FIELD
  int DAY_OF_WEEK_FIELD
  int DAY_OF_WEEK_IN_MONTH_FIELD
  int DAY_OF_YEAR_FIELD
  int DEFAULT
  int ERA_FIELD
  int FULL
  int HOUR_OF_DAY0_FIELD
  int HOUR_OF_DAY1_FIELD
  int HOUR0_FIELD
  int HOUR1_FIELD
  int LONG
  int MEDIUM
  int MILLISECOND_FIELD
  int MINUTE_FIELD
  int MONTH_FIELD
  int SECOND_FIELD
  int SHORT
  int TIMEZONE_FIELD
  int WEEK_OF_MONTH_FIELD
  int WEEK_OF_YEAR_FIELD
  int YEAR_FIELD
  Locale[] getAvailableLocales()
  Calendar getCalendar()
  DateFormat getDateInstance()
  DateFormat getDateInstance(int)
  DateFormat getDateInstance(int,Locale)
  DateFormat getDateTimeInstance()
  DateFormat getDateTimeInstance(int,int)
  DateFormat getDateTimeInstance(int,int,Locale)
  DateFormat getInstance()
  NumberFormat getNumberFormat()
  DateFormat getTimeInstance()
  DateFormat getTimeInstance(int)
  DateFormat getTimeInstance(int,Locale)
  TimeZone getTimeZone()
  boolean isLenient()
  Date parse(String)
  Date parse(String,ParsePosition)
  void setCalendar(Calendar)
  void setLenient(boolean)
  void setNumberFormat(NumberFormat)
  void setTimeZone(TimeZone)
}

class java.text.DateFormat$Field {
  DateFormat.Field AM_PM
  DateFormat.Field DAY_OF_MONTH
  DateFormat.Field DAY_OF_WEEK
  DateFormat.Field DAY_OF_WEEK_IN_MONTH
  DateFormat.Field DAY_OF_YEAR
  DateFormat.Field ERA
  DateFormat.Field HOUR_OF_DAY0
  DateFormat.Field HOUR_OF_DAY1
  DateFormat.Field HOUR0
  DateFormat.Field HOUR1
  DateFormat.Field MILLISECOND
  DateFormat.Field MINUTE
  DateFormat.Field MONTH
  DateFormat.Field SECOND
  DateFormat.Field TIME_ZONE
  DateFormat.Field WEEK_OF_MONTH
  DateFormat.Field WEEK_OF_YEAR
  DateFormat.Field YEAR
  int getCalendarField()
  DateFormat.Field ofCalendarField(int)
}

class java.text.DateFormatSymbols {
  ()
  (Locale)
  def clone()
  String[] getAmPmStrings()
  Locale[] getAvailableLocales()
  String[] getEras()
  DateFormatSymbols getInstance()
  DateFormatSymbols getInstance(Locale)
  String getLocalPatternChars()
  String[] getMonths()
  String[] getShortMonths()
  String[] getShortWeekdays()
  String[] getWeekdays()
  String[][] getZoneStrings()
  int hashCode()
  void setAmPmStrings(String[])
  void setEras(String[])
  void setLocalPatternChars(String)
  void setMonths(String[])
  void setShortMonths(String[])
  void setShortWeekdays(String[])
  void setWeekdays(String[])
  void setZoneStrings(String[][])
}

class java.text.DecimalFormat {
  ()
  (String)
  (String,DecimalFormatSymbols)
  void applyLocalizedPattern(String)
  void applyPattern(String)
  DecimalFormatSymbols getDecimalFormatSymbols()
  int getGroupingSize()
  int getMultiplier()
  String getNegativePrefix()
  String getNegativeSuffix()
  String getPositivePrefix()
  String getPositiveSuffix()
  boolean isDecimalSeparatorAlwaysShown()
  boolean isParseBigDecimal()
  void setDecimalFormatSymbols(DecimalFormatSymbols)
  void setDecimalSeparatorAlwaysShown(boolean)
  void setGroupingSize(int)
  void setMultiplier(int)
  void setNegativePrefix(String)
  void setNegativeSuffix(String)
  void setPositivePrefix(String)
  void setPositiveSuffix(String)
  void setParseBigDecimal(boolean)
  String toLocalizedPattern()
  String toPattern()
}

class java.text.DecimalFormatSymbols {
  ()
  (Locale)
  def clone()
  Locale[] getAvailableLocales()
  Currency getCurrency()
  String getCurrencySymbol()
  char getDecimalSeparator()
  char getDigit()
  String getExponentSeparator()
  char getGroupingSeparator()
  String getInfinity()
  DecimalFormatSymbols getInstance()
  DecimalFormatSymbols getInstance(Locale)
  String getInternationalCurrencySymbol()
  char getMinusSign()
  char getMonetaryDecimalSeparator()
  String getNaN()
  char getPatternSeparator()
  char getPercent()
  char getPerMill()
  char getZeroDigit()
  void setCurrency(Currency)
  void setCurrencySymbol(String)
  void setDecimalSeparator(char)
  void setDigit(char)
  void setExponentSeparator(String)
  void setGroupingSeparator(char)
  void setInfinity(String)
  void setInternationalCurrencySymbol(String)
  void setMinusSign(char)
  void setMonetaryDecimalSeparator(char)
  void setNaN(String)
  void setPatternSeparator(char)
  void setPercent(char)
  void setPerMill(char)
  void setZeroDigit(char)
}

class java.text.FieldPosition {
  (int)
  (Format.Field,int)
  int getBeginIndex()
  int getEndIndex()
  int getField()
  Format.Field getFieldAttribute()
  void setBeginIndex(int)
  void setEndIndex(int)
}

class java.text.Format {
  def clone()
  String format(Object)
  StringBuffer format(Object,StringBuffer,FieldPosition)
  AttributedCharacterIterator formatToCharacterIterator(Object)
  Object parseObject(String)
  Object parseObject(String,ParsePosition)
}

class java.text.Format$Field {
}

class java.text.MessageFormat {
  void applyPattern(String)
  String format(String,Object[])
  Format[] getFormats()
  Format[] getFormatsByArgumentIndex()
  Locale getLocale()
  Object[] parse(String)
  Object[] parse(String,ParsePosition)
  void setFormat(int,Format)
  void setFormatByArgumentIndex(int,Format)
  void setFormats(Format[])
  void setFormatsByArgumentIndex(Format[])
  void setLocale(Locale)
  String toPattern()
}

class java.text.MessageFormat$Field {
  MessageFormat.Field ARGUMENT
}

class java.text.Normalizer {
  boolean isNormalized(CharSequence,Normalizer.Form)
  String normalize(CharSequence,Normalizer.Form)
}

class java.text.NumberFormat {
  int FRACTION_FIELD
  int INTEGER_FIELD
  Locale[] getAvailableLocales()
  Currency getCurrency()
  NumberFormat getCurrencyInstance()
  NumberFormat getCurrencyInstance(Locale)
  NumberFormat getInstance()
  NumberFormat getInstance(Locale)
  NumberFormat getIntegerInstance()
  NumberFormat getIntegerInstance(Locale)
  int getMaximumFractionDigits()
  int getMaximumIntegerDigits()
  int getMinimumFractionDigits()
  int getMinimumIntegerDigits()
  NumberFormat getNumberInstance()
  NumberFormat getNumberInstance(Locale)
  NumberFormat getPercentInstance()
  NumberFormat getPercentInstance(Locale)
  RoundingMode getRoundingMode()
  boolean isGroupingUsed()
  boolean isParseIntegerOnly()
  Number parse(String)
  Number parse(String,ParsePosition)
  void setCurrency(Currency)
  void setGroupingUsed(boolean)
  void setMaximumFractionDigits(int)
  void setMaximumIntegerDigits(int)
  void setMinimumFractionDigits(int)
  void setMinimumIntegerDigits(int)
  void setParseIntegerOnly(boolean)
  void setRoundingMode(RoundingMode)
}

class java.text.NumberFormat$Field {
  NumberFormat.Field CURRENCY
  NumberFormat.Field DECIMAL_SEPARATOR
  NumberFormat.Field EXPONENT
  NumberFormat.Field EXPONENT_SIGN
  NumberFormat.Field EXPONENT_SYMBOL
  NumberFormat.Field FRACTION
  NumberFormat.Field GROUPING_SEPARATOR
  NumberFormat.Field INTEGER
  NumberFormat.Field PERCENT
  NumberFormat.Field PERMILLE
  NumberFormat.Field SIGN
}

class java.text.ParsePosition {
  (int)
  int getErrorIndex()
  int getIndex()
  void setErrorIndex(int)
  void setIndex(int)
}

class java.text.RuleBasedCollator {
  (String)
  CollationElementIterator getCollationElementIterator(String)
  String getRules()
}

class java.text.SimpleDateFormat {
  ()
  (String)
  (String,Locale)
  void applyLocalizedPattern(String)
  void applyPattern(String)
  Date get2DigitYearStart()
  DateFormatSymbols getDateFormatSymbols()
  void setDateFormatSymbols(DateFormatSymbols)
  void set2DigitYearStart(Date)
  String toLocalizedPattern()
  String toPattern()
}

class java.text.StringCharacterIterator {
  (String)
  (String,int)
  (String,int,int,int)
  void setText(String)
}

#### Enums

class java.text.Normalizer$Form {
  Normalizer.Form NFC
  Normalizer.Form NFD
  Normalizer.Form NFKC
  Normalizer.Form NFKD
  Normalizer.Form valueOf(String)
  Normalizer.Form[] values()
}

#### Exceptions

class java.text.ParseException {
  (String,int)
  int getErrorOffset()
}
