APIdia Launch Partner
Top Inners Fields Constructors Methods
io.github.spannm.jackcess.impl.expr

public final Class FormatUtil

extends Object
Class Inheritance
Annotations
@SuppressWarnings:PMD.FieldDeclarationsShouldBeAtStartOfClass
Imports
io.github.spannm.jackcess.expr.EvalContext, .EvalException, .NumericConfig, .TemporalConfig, .Value, io.github.spannm.jackcess.impl.SimpleCache, io.github.spannm.jackcess.impl.expr.ExpressionTokenizer.ExprBuf, io.github.spannm.jackcess.util.StringUtil, java.math.BigDecimal, java.text.DecimalFormat, .NumberFormat, java.time.LocalDateTime, java.time.format.DateTimeFormatter, .DateTimeFormatterBuilder, java.time.temporal.ChronoField, .TemporalField, .WeekFields, java.util.AbstractMap, .AbstractSet, .ArrayList, .Arrays, .Collections, .HashMap, .Iterator, .List, .Map, .Objects, .Set, java.util.function.BiConsumer

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private abstract static class
private abstract static class
private abstract static class
private static class
private static class
private static class
private static class
private static class
pack-priv static interface
private static class
pack-priv static interface
private static class
FormatUtil.FmtCacheKey

Cache key for parsed custom Fmt instances.

private static class
private static class
public static enum
private static class
private static class
private static class
private static class
private static class
private static class
public static class
FormatUtil.StandaloneFormatter

Utility for leveraging format support outside of expression evaluation.

private static enum
private abstract static class

Field Summary

Modifier and TypeField and Description
private static final char
private static final String
CUSTOM_FMT_CACHE_KEY

Key under which the custom format cache is stored in the current EvalContext's Bindings.

private static final int
private static final Map<String, FormatUtil.DateFormatBuilder>
private static final char
private static final char
private static final FormatUtil.Fmt
private static final char
private static final char
private static final char
private static final char
private static final byte
private static final byte
private static final byte
private static final byte
private static final byte
private static final byte
private static final char
private static final byte[]
private static final char
private static final char
private static final int
private static final int
private static final int
private static final int
private static final int
private static final NumberFormatter.NotationType[]
private static final boolean[]
private static final FormatUtil.Fmt
private static final int
private static final char
private static final FormatUtil.DateFormatBuilder
private static final char
private static final Map<String, FormatUtil.Fmt>
private static final char
private static final char
private static final char
private static final char
private static final char
private static final char
private static final char

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
addCustomGeneralFormat(String[] fmtStrs, int fmtIdx, StringBuilder sb)

private static void
addCustomNumberFormat(String[] fmtStrs, NumberFormatter.NotationType[] expTypes, boolean[] hasFmts, boolean[] hasReqDigit, int fmtIdx, StringBuilder sb)

private static FormatUtil.DateFormatBuilder
private static FormatUtil.BDFormat
createCustomNumberFormat(String[] fmtStrs, NumberFormatter.NotationType[] expTypes, boolean[] hasFmts, boolean[] hasReqDigit, int fmtIdx, boolean isZeroFmt, FormatUtil.Args args, ExpressionTokenizer.ExprBuf buf)

private static DateTimeFormatter
private static FormatUtil.Fmt
public static String
createNumberFormatPattern(FormatUtil.NumPatternType numPatType, int numDecDigits, boolean incLeadDigit, boolean negParens, int numGroupDigits)

public static FormatUtil.StandaloneFormatter
createStandaloneFormatter(EvalContext ctx, String fmtStr, int firstDay, int firstWeekType)

private static byte
private static void
private static void
private static void
public static Value
format(EvalContext _ctx, Value _expr, String _fmtStr, int _firstDay, int _firstWeekType)

private static Value
private static byte
private static String
private static FormatUtil.Fmt
private static void
private static FormatUtil.Fmt
private static FormatUtil.Fmt
private static FormatUtil.Fmt
private static FormatUtil.Fmt
private static String
private static void
private static void
private static void
setFormatCodeTypes(String chars, byte type)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait