Class JsonLexer
- java.lang.Object
-
- org.hl7.fhir.utilities.json.parser.JsonLexer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonLexer.State
static class
JsonLexer.TokenType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
consume(JsonLexer.TokenType type)
IOException
error(String msg)
JsonLocationData
getLastLocationAWS()
JsonLocationData
getLastLocationBWS()
JsonLocationData
getLocation()
Stack<JsonLexer.State>
getStates()
JsonLexer.TokenType
getType()
String
getValue()
boolean
isUnquoted()
void
next()
void
start()
void
takeComments(JsonElement child)
String
toString()
-
-
-
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()
-
-