public final class ScalarAnalysis extends Object
| Constructor and Description |
|---|
ScalarAnalysis(String scalar,
boolean empty,
boolean multiline,
boolean allowFlowPlain,
boolean allowBlockPlain,
boolean allowSingleQuoted,
boolean allowBlock)
Create
|
| Modifier and Type | Method and Description |
|---|---|
String |
getScalar()
getter
|
boolean |
isAllowBlock()
getter
|
boolean |
isAllowBlockPlain()
getter
|
boolean |
isAllowFlowPlain()
getter
|
boolean |
isAllowSingleQuoted()
getter
|
boolean |
isEmpty()
getter
|
boolean |
isMultiline()
getter
|
public ScalarAnalysis(String scalar, boolean empty, boolean multiline, boolean allowFlowPlain, boolean allowBlockPlain, boolean allowSingleQuoted, boolean allowBlock)
scalar - - the data to analyseempty - - true for empty scalarmultiline - - true if it may take many linesallowFlowPlain - - true if can be plain in flow contextallowBlockPlain - - true if can be plain in block contextallowSingleQuoted - - true if single quotes are allowedallowBlock - - true if block style is alowedpublic String getScalar()
public boolean isEmpty()
public boolean isMultiline()
public boolean isAllowFlowPlain()
public boolean isAllowBlockPlain()
public boolean isAllowSingleQuoted()
public boolean isAllowBlock()
Copyright © 2018–2022. All rights reserved.