class PrettyYamlRenderer extends BaseRenderer[Writer]

A version of YamlRenderer that tries its best to make the output YAML as pretty as possible: unquoted strings, de-dented lists, etc. Follows the PyYAML style. Also adds the ability to stream writes to a generic Writer.

Linear Supertypes
BaseRenderer[Writer], JsVisitor[Writer, Writer], Visitor[Writer, Writer], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PrettyYamlRenderer
  2. BaseRenderer
  3. JsVisitor
  4. Visitor
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PrettyYamlRenderer(out: Writer = new java.io.StringWriter(), indentArrayInObject: Boolean = false, indent: Int, idealWidth: Int = 80)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addSpaceAfterColon(): Unit
  5. var afterColon: Boolean
  6. var afterKey: Boolean
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. val colonSnippet: String
    Definition Classes
    BaseRenderer
  10. var commaBuffered: Boolean
    Definition Classes
    BaseRenderer
  11. var dashBuffered: Boolean
  12. var depth: Int
    Definition Classes
    BaseRenderer
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. var firstElementInArray: Boolean
  16. def flushBuffer(): Unit
    Definition Classes
    PrettyYamlRenderer → BaseRenderer
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. var leftHandPrefixOffset: Int
  21. def map[Z](f: (Writer) => Z): Visitor[Writer, Z]
    Definition Classes
    Visitor
  22. def mapNulls[Z](f: (Writer) => Z): Visitor[Writer, Z]
    Definition Classes
    Visitor
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. var newlineBuffered: Boolean
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def renderIndent(): Unit
    Definition Classes
    BaseRenderer
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. var topLevel: Boolean
  31. def visitArray(length: Int, index: Int): ArrVisitor[Writer, Writer] { def subVisitor: sjsonnet.PrettyYamlRenderer }
    Definition Classes
    PrettyYamlRenderer → BaseRenderer → Visitor
  32. def visitBinary(bytes: Array[Byte], offset: Int, len: Int, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  33. def visitChar(s: Char, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  34. def visitExt(tag: Byte, bytes: Array[Byte], offset: Int, len: Int, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  35. def visitFalse(index: Int): Writer
    Definition Classes
    PrettyYamlRenderer → BaseRenderer → Visitor
  36. def visitFloat32(d: Float, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  37. def visitFloat64(d: Double, index: Int): Writer
    Definition Classes
    PrettyYamlRenderer → BaseRenderer → JsVisitor → Visitor
  38. def visitFloat64String(s: String, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  39. def visitFloat64StringParts(s: CharSequence, decIndex: Int, expIndex: Int, index: Int): Writer
    Definition Classes
    BaseRenderer → Visitor
  40. def visitFloat64StringParts(s: CharSequence, decIndex: Int, expIndex: Int): Writer
    Definition Classes
    JsVisitor
  41. def visitInt32(i: Int, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  42. def visitInt64(i: Long, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  43. def visitNull(index: Int): Writer
    Definition Classes
    PrettyYamlRenderer → BaseRenderer → Visitor
  44. def visitObject(length: Int, index: Int): ObjVisitor[Writer, Writer] { ... /* 2 definitions in type refinement */ }
    Definition Classes
    PrettyYamlRenderer → BaseRenderer → Visitor
  45. def visitString(s: CharSequence, index: Int): Writer
    Definition Classes
    PrettyYamlRenderer → BaseRenderer → Visitor
  46. def visitTrue(index: Int): Writer
    Definition Classes
    PrettyYamlRenderer → BaseRenderer → Visitor
  47. def visitUInt64(i: Long, index: Int): Writer
    Definition Classes
    JsVisitor → Visitor
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from BaseRenderer[Writer]

Inherited from JsVisitor[Writer, Writer]

Inherited from Visitor[Writer, Writer]

Inherited from AnyRef

Inherited from Any

Ungrouped