Package org.sqlite.date
Class FastDateParser.CopyQuotedStrategy
- java.lang.Object
-
- org.sqlite.date.FastDateParser.Strategy
-
- org.sqlite.date.FastDateParser.CopyQuotedStrategy
-
- Enclosing class:
- FastDateParser
private static class FastDateParser.CopyQuotedStrategy extends FastDateParser.Strategy
A strategy that copies the static or quoted field in the parsing pattern
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringformatField
-
Constructor Summary
Constructors Constructor Description CopyQuotedStrategy(java.lang.String formatField)Construct a Strategy that ensures the formatField has literal text
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanaddRegex(FastDateParser parser, java.lang.StringBuilder regex)Generate aPatternregular expression to theStringBuilderwhich will accept this field(package private) booleanisNumber()Is this field a number? The default implementation returns false.-
Methods inherited from class org.sqlite.date.FastDateParser.Strategy
setCalendar
-
-
-
-
Method Detail
-
isNumber
boolean isNumber()
Is this field a number? The default implementation returns false.- Overrides:
isNumberin classFastDateParser.Strategy- Returns:
- true, if field is a number
-
addRegex
boolean addRegex(FastDateParser parser, java.lang.StringBuilder regex)
Generate aPatternregular expression to theStringBuilderwhich will accept this field- Specified by:
addRegexin classFastDateParser.Strategy- Parameters:
parser- The parser calling this strategyregex- TheStringBuilderto append to- Returns:
- true, if this field will set the calendar; false, if this field is a constant value
-
-