APIdia Launch Partner
Top Description Methods
io.github.spannm.jackcess.expr

public Interface LocaleContext

Known Direct Subinterfaces
io.github.spannm.jackcess.impl.expr.Expressionator.ParseContext, io.github.spannm.jackcess.expr.EvalContext
Imports
java.text.DecimalFormat, java.time.ZoneId, java.time.format.DateTimeFormatter, java.util.Locale

LocaleContext encapsulates all shared localization state for expression parsing and evaluation.

Method Summary

Modifier and TypeMethod and Description
public DateTimeFormatter

Returns:

an appropriately configured (i.e. locale) DateTimeFormatter for the given format.
createDateFormatter
(String formatStr)

Returns an appropriately configured (i.e. locale) DateTimeFormatter for the given format.

public DecimalFormat

Returns:

an appropriately configured (i.e. DecimalFormatSymbols) DecimalFormat for the given format.
createDecimalFormat
(String formatStr)

Returns an appropriately configured (i.e. DecimalFormatSymbols) DecimalFormat for the given format.

public default Locale

Returns:

the currently configured Locale
getLocale
()

Returns the currently configured Locale.

public NumericConfig

Returns:

the currently configured NumericConfig (from the EvalConfig)
getNumericConfig
()

Returns the currently configured NumericConfig (from the EvalConfig).

public TemporalConfig

Returns:

the currently configured TemporalConfig (from the EvalConfig)
getTemporalConfig
()

Returns the currently configured TemporalConfig (from the EvalConfig).

public ZoneId

Returns:

the currently configured ZoneId
getZoneId
()

Returns the currently configured ZoneId.

Method Detail

createDateFormatterback to summary
public DateTimeFormatter createDateFormatter(String formatStr)

Returns an appropriately configured (i.e. locale) DateTimeFormatter for the given format.

Returns:DateTimeFormatter

an appropriately configured (i.e. locale) DateTimeFormatter for the given format.

createDecimalFormatback to summary
public DecimalFormat createDecimalFormat(String formatStr)

Returns an appropriately configured (i.e. DecimalFormatSymbols) DecimalFormat for the given format.

Returns:DecimalFormat

an appropriately configured (i.e. DecimalFormatSymbols) DecimalFormat for the given format.

getLocaleback to summary
public default Locale getLocale()

Returns the currently configured Locale.

Returns:Locale

the currently configured Locale

getNumericConfigback to summary
public NumericConfig getNumericConfig()

Returns the currently configured NumericConfig (from the EvalConfig).

Returns:NumericConfig

the currently configured NumericConfig (from the EvalConfig)

getTemporalConfigback to summary
public TemporalConfig getTemporalConfig()

Returns the currently configured TemporalConfig (from the EvalConfig).

Returns:TemporalConfig

the currently configured TemporalConfig (from the EvalConfig)

getZoneIdback to summary
public ZoneId getZoneId()

Returns the currently configured ZoneId.

Returns:ZoneId

the currently configured ZoneId