Package dev.frostlake.functions.scalar
Class FormatPiece
java.lang.Object
dev.frostlake.functions.scalar.FormatPiece
One piece of a Snowflake date/time format model after the scan: either an ELEMENT — the canonical
upper-case spelling of a recognised element (YYYY, MON, HH24, FF3, TZH:TZM, …) — or a run of
LITERAL text: separators, unrecognised letters, the contents of a double-quoted run.
-
Method Summary
Modifier and TypeMethodDescriptionelement()The element's canonical spelling, or null for a literal piece.static FormatPieceAn element piece, by its canonical spelling.booleanWhether this piece is a format element rather than literal text.literal()The literal text, or null for an element piece.static FormatPieceA literal-text piece.
-
Method Details
-
element
An element piece, by its canonical spelling. -
literal
A literal-text piece. -
isElement
public boolean isElement()Whether this piece is a format element rather than literal text. -
element
The element's canonical spelling, or null for a literal piece. -
literal
The literal text, or null for an element piece.
-