class DateTimeParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private char |
currentSeparator |
private int |
fieldStart |
private int |
len |
private java.lang.String |
str |
Constructor and Description |
---|
DateTimeParser(java.lang.String str) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
checkEnd()
Check that we are at the end of the string: that the rest of the characters, if any, are blanks.
|
(package private) char |
getCurrentSeparator() |
(package private) char |
nextSeparator() |
(package private) int |
parseChoice(java.lang.String[] choices)
Determine if the next characters are one of a choice of strings.
|
(package private) int |
parseInt(int maxDigits,
boolean truncationAllowed,
char[] separator,
boolean isFraction)
Parse the next integer.
|
private void |
updateCurrentSeparator() |
private java.lang.String str
private int len
private int fieldStart
private char currentSeparator
int parseInt(int maxDigits, boolean truncationAllowed, char[] separator, boolean isFraction) throws StandardException
maxDigits
- the maximum number of digitstruncationAllowed
- If true then leading zeroes may be ommitted. If false then the integer must be
exactly ndigits long.separator
- The separator at the end of the integer. If zero then the integer must be at the end of the string
but may be followed by spaces.isFraction
- If true then the returned integer will be multiplied by 10**(maxDigits - actualDigitCount)StandardException
- invalid syntax.int parseChoice(java.lang.String[] choices) throws StandardException
choices
- An array of strings.StandardException
- if the next characters are not in choices.private void updateCurrentSeparator()
void checkEnd() throws StandardException
StandardException
- if there are more non-blank characters.char nextSeparator()
char getCurrentSeparator()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.