class Builder[J] extends AnyRef
Builder is an mutable structure to write JSON into.
- Alphabetic
- By Inheritance
- Builder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Builder(facade: BuilderFacade[J])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addField[A](field: String, a: A)(implicit writer: JsonWriter[A]): Unit
-
def
addFieldName(field: String): Unit
Write field name to the current context.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
beginArray(): Unit
Begins JArray.
Begins JArray. The builder state will be in
BuilderState.InContext
. MakewriteXXX
calls to write into this array, and end withendArray
. -
def
beginObject(): Unit
Begins JObject.
Begins JObject. The builder state will be in
BuilderState.InObject
. Make pairsaddField("abc")
andwriteXXX
calls to make field entries, and end withendObject
. -
def
beginPreObject(): Unit
Begins an offline JObject, which will later be used for beginObject().
Begins an offline JObject, which will later be used for beginObject(). The builder state will be in
BuilderState.InObject
. Make pairsaddField("abc")
andwriteXXX
calls to make field entries, and end withendObject
. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
var
contexts: List[FContext[J]]
- Attributes
- protected
-
def
endArray(): Unit
Ends the current array context.
-
def
endObject(): Unit
Ends the current object context.
-
def
endPreObject(): Unit
Ends the current object context.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isInObject: Boolean
Checks if the current state is
InObject
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def result: Option[J]
- def state: BuilderState
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
writeBigDecimal(x: BigDecimal): Unit
Write
BigDecimal
value to the current context. -
def
writeBoolean(x: Boolean): Unit
Write
Boolean
value to the current context. -
def
writeDouble(x: Double): Unit
Write
Double
value to the current context. -
def
writeInt(x: Int): Unit
Write
Int
value to the current context. -
def
writeLong(x: Long): Unit
Write
Long
value to the current context. -
def
writeNull(): Unit
Write null to the current context.
-
def
writeString(x: String): Unit
Write
String
value to the current context.