public abstract static class ValueDecoderFactory.DecoderBase extends TypedValueDecoder
Modifier and Type | Field and Description |
---|---|
protected int |
mNextPtr
Pointer to the next character to check, within lexical value
|
Modifier | Constructor and Description |
---|---|
protected |
ValueDecoderFactory.DecoderBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
_clean(String str) |
protected IllegalArgumentException |
constructInvalidValue(char[] lexical,
int startOffset,
int end) |
protected IllegalArgumentException |
constructInvalidValue(String lexical) |
abstract String |
getType() |
void |
handleEmptyValue()
Method called if the value to decode does not contain
any non-white space characters (including the case where
typed accessor is called for an empty element).
|
protected String |
lexicalDesc(char[] lexical,
int startOffset,
int end) |
protected String |
lexicalDesc(String lexical) |
protected static int |
parseInt(char[] digitChars,
int start,
int end)
Fast method for parsing integers that are known to fit into
regular 32-bit signed int type.
|
protected static int |
parseInt(int num,
char[] digitChars,
int start,
int end) |
protected static int |
parseInt(int num,
String digitChars,
int start,
int end) |
protected static int |
parseInt(String digitChars,
int start,
int end) |
protected static long |
parseLong(char[] digitChars,
int start,
int end) |
protected static long |
parseLong(String digitChars,
int start,
int end) |
protected int |
skipSignAndZeroes(char[] lexical,
char ch,
boolean hasSign,
int start,
int end) |
protected int |
skipSignAndZeroes(String lexical,
char ch,
boolean hasSign,
int end) |
protected void |
verifyDigits(char[] lexical,
int start,
int end,
int ptr) |
protected void |
verifyDigits(String lexical,
int start,
int end)
Method called to check that remaining String consists of zero or
more digits
|
decode, decode
protected int mNextPtr
public abstract String getType()
public void handleEmptyValue()
handleEmptyValue
in class TypedValueDecoder
protected void verifyDigits(String lexical, int start, int end)
protected void verifyDigits(char[] lexical, int start, int end, int ptr)
protected int skipSignAndZeroes(String lexical, char ch, boolean hasSign, int end)
protected int skipSignAndZeroes(char[] lexical, char ch, boolean hasSign, int start, int end)
protected static final int parseInt(char[] digitChars, int start, int end)
protected static final int parseInt(int num, char[] digitChars, int start, int end)
protected static final int parseInt(String digitChars, int start, int end)
protected static final int parseInt(int num, String digitChars, int start, int end)
protected static final long parseLong(char[] digitChars, int start, int end)
protected static final long parseLong(String digitChars, int start, int end)
protected IllegalArgumentException constructInvalidValue(String lexical)
protected IllegalArgumentException constructInvalidValue(char[] lexical, int startOffset, int end)
protected String lexicalDesc(char[] lexical, int startOffset, int end)
Copyright © 2012-2015 fasterxml.com. All Rights Reserved.