A Visitor that constructs a Value.

This would usually be used in conjunction with a Parser.

By: Tom Bentley, Jakukyo Friel
  • Builder
    • Basic
      • Identifiable
      • Object
        • Anything
    • Visitor

no subtypes hierarchy

Initializer
Builder()
Attributes
resultshared Value result

The constructed Value.

Throws
  • AssertionError

    The builder has not yet seen enough input to return a fully formed JSON value.

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
onBooleanshared actual void onBoolean(Boolean bool)

Called when encountering true or false.

Refines Visitor.onBoolean
onEndArrayshared actual void onEndArray()

Called at the end of an array.

Refines Visitor.onEndArray
onEndObjectshared actual void onEndObject()

Called at the end of an object.

Refines Visitor.onEndObject
onKeyshared actual void onKey(String key)

Called when encountering a key within a the current object.

Refines Visitor.onKey
onNullshared actual void onNull()

Called when encountering a null.

Refines Visitor.onNull
onNumbershared actual void onNumber(Integer|Float num)

Called when encountering a number.

Refines Visitor.onNumber
onStartArrayshared actual void onStartArray()

Called at the start of a new array. Further calls pertain to this new object until a corresponding call to onEndArray.

Refines Visitor.onStartArray
onStartObjectshared actual void onStartObject()

Called at the start of a new object. Further calls pertain to this new object until a corresponding call to onEndObject.

Refines Visitor.onStartObject
onStringshared actual void onString(String string)

Called when encountering a string.

Refines Visitor.onString
Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: Visitor
onBoolean, onEndArray, onEndObject, onKey, onNull, onNumber, onStartArray, onStartObject, onString