Scalar Analysis
class ScalarAnalysis(val scalar: String, val empty: Boolean, val multiline: Boolean, val allowFlowPlain: Boolean, val allowBlockPlain: Boolean, val allowSingleQuoted: Boolean, val allowBlock: Boolean)
Accumulate information to choose the scalar style
Parameters
scalar
the scalar to be analysed
empty
true
for empty scalar
multiline
true
if it may take many lines
allow Flow Plain
true
if can be plain in flow context
allow Block Plain
true
if can be plain in block context
allow Single Quoted
true
if single quotes are allowed
allow Block
true
when block style is allowed for this scalar