Class JsonLexer
- java.lang.Object
-
- org.hl7.fhir.utilities.json.parser.JsonLexer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonLexer.Statestatic classJsonLexer.TokenType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringconsume(JsonLexer.TokenType type)IOExceptionerror(String msg)JsonLocationDatagetLastLocationAWS()JsonLocationDatagetLastLocationBWS()JsonLocationDatagetLocation()Stack<JsonLexer.State>getStates()JsonLexer.TokenTypegetType()StringgetValue()booleanisUnquoted()voidnext()voidstart()voidtakeComments(JsonElement child)StringtoString()
-
-
-
Constructor Detail
-
JsonLexer
public JsonLexer(String source, boolean allowComments, boolean allowUnquotedStrings) throws IOException
- Throws:
IOException
-
-
Method Detail
-
error
public IOException error(String msg)
-
start
public void start() throws IOException
- Throws:
IOException
-
getType
public JsonLexer.TokenType getType()
-
getLastLocationBWS
public JsonLocationData getLastLocationBWS()
-
getLastLocationAWS
public JsonLocationData getLastLocationAWS()
-
next
public void next() throws IOException
- Throws:
IOException
-
consume
public String consume(JsonLexer.TokenType type) throws IOException
- Throws:
IOException
-
getLocation
public JsonLocationData getLocation()
-
getStates
public Stack<JsonLexer.State> getStates()
-
takeComments
public void takeComments(JsonElement child)
-
isUnquoted
public boolean isUnquoted()
-
-