Package org.apache.groovy.json.internal
Class JsonParserLax
java.lang.Object
org.apache.groovy.json.internal.BaseJsonParser
org.apache.groovy.json.internal.JsonParserCharArray
org.apache.groovy.json.internal.JsonParserLax
- All Implemented Interfaces:
- JsonParser
public class JsonParserLax extends JsonParserCharArray
- 
Field SummaryFields inherited from class org.apache.groovy.json.internal.JsonParserCharArray__currentChar, __index, charArray, FALSE, NULL, TRUEFields inherited from class org.apache.groovy.json.internal.BaseJsonParserALPHA_0, ALPHA_1, ALPHA_2, ALPHA_3, ALPHA_4, ALPHA_5, ALPHA_6, ALPHA_7, ALPHA_8, ALPHA_9, bufSize, charset, CLOSED_BRACKET, CLOSED_CURLY, COLON, COMMA, DECIMAL_POINT, DOUBLE_QUOTE, ESCAPE, internedKeysCache, internKeys, LETTER_BIG_E, LETTER_E, MINUS, PLUS
- 
Constructor SummaryConstructors Constructor Description JsonParserLax()JsonParserLax(boolean useValues)JsonParserLax(boolean useValues, boolean chop)JsonParserLax(boolean useValues, boolean chop, boolean lazyChop)JsonParserLax(boolean useValues, boolean chop, boolean lazyChop, boolean defaultCheckDates)
- 
Method SummaryModifier and Type Method Description protected java.lang.ObjectdecodeFromChars(char[] cs)protected ValuedecodeNumberLax(boolean minus)Decodes a number from a JSON value.protected java.lang.ObjectdecodeValue()Methods inherited from class org.apache.groovy.json.internal.JsonParserCharArraycomplain, currentChar, decodeFalse, decodeJsonArray, decodeJsonObject, decodeNull, decodeTrue, exceptionDetails, hasCurrent, hasMore, nextChar, parse, skipWhiteSpaceMethods inherited from class org.apache.groovy.json.internal.BaseJsonParsercharDescription, findEndQuote, hasEscapeChar, isDecimalChar, isDelimiter, isDoubleQuote, isEscape, isNumberDigit, parse, parse, parse, parse, parse, parse, parse, parse, setCharsetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
JsonParserLaxpublic JsonParserLax()
- 
JsonParserLaxpublic JsonParserLax(boolean useValues)
- 
JsonParserLaxpublic JsonParserLax(boolean useValues, boolean chop)
- 
JsonParserLaxpublic JsonParserLax(boolean useValues, boolean chop, boolean lazyChop)
- 
JsonParserLaxpublic JsonParserLax(boolean useValues, boolean chop, boolean lazyChop, boolean defaultCheckDates)
 
- 
- 
Method Details- 
decodeValueprotected final java.lang.Object decodeValue()- Overrides:
- decodeValuein class- JsonParserCharArray
 
- 
decodeNumberLaxDecodes a number from a JSON value. If at any point it is determined that the value is not a valid number the value is treated as aString.- Parameters:
- minus- indicate whether the number is negative
- Returns:
- a number, or Stringif not a valid number
 
- 
decodeFromCharsprotected final java.lang.Object decodeFromChars(char[] cs)- Overrides:
- decodeFromCharsin class- JsonParserCharArray
 
 
-