public class JSONKeywordBuilder extends Object implements JSONBuilder
| Constructor and Description |
|---|
JSONKeywordBuilder(String keyword,
net.pwall.json.JSONValue value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptChar(int ch)
Accept a character as part of the JSON, and return
true if the character has been consumed. |
net.pwall.json.JSONValue |
getResult()
Get the
JSONValue result. |
boolean |
isComplete()
Test whether the JSON being parsed by this builder is complete.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckWhitespace, close, isWhitespacepublic JSONKeywordBuilder(String keyword, net.pwall.json.JSONValue value)
public boolean isComplete()
JSONBuilderisComplete in interface JSONBuildertrue if the JSON is completepublic net.pwall.json.JSONValue getResult()
JSONBuilderJSONValue result.getResult in interface JSONBuilderpublic boolean acceptChar(int ch)
JSONBuildertrue if the character has been consumed. The
character is in the form of a Unicode code point; since all of the syntactic elements of JSON fall within the
ASCII subset, the only place this is relevant is inside strings.acceptChar in interface JSONBuilderch - the charactertrue if the character has been consumedCopyright © 2021. All rights reserved.