Package org.entur.jackson.tools.jsh
Class SyntaxHighlighterIndenter
java.lang.Object
org.entur.jackson.tools.jsh.SyntaxHighlighterIndenter
- All Implemented Interfaces:
tools.jackson.core.util.DefaultPrettyPrinter.Indenter
public class SyntaxHighlighterIndenter
extends Object
implements tools.jackson.core.util.DefaultPrettyPrinter.Indenter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSyntaxHighlighterIndenter(SyntaxHighlighter highligheter, tools.jackson.core.util.DefaultPrettyPrinter.Indenter delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisInline()voidsetValueColor(String color) Set the color which is set after the indentation.voidwriteIndentation(tools.jackson.core.JsonGenerator jg, int level)
-
Field Details
-
highligheter
-
valueColor
-
-
Constructor Details
-
SyntaxHighlighterIndenter
public SyntaxHighlighterIndenter(SyntaxHighlighter highligheter, tools.jackson.core.util.DefaultPrettyPrinter.Indenter delegate)
-
-
Method Details
-
writeIndentation
public void writeIndentation(tools.jackson.core.JsonGenerator jg, int level) - Specified by:
writeIndentationin interfacetools.jackson.core.util.DefaultPrettyPrinter.Indenter
-
setValueColor
Set the color which is set after the indentation.- Parameters:
color- color to set
-
clearValueColor
public void clearValueColor() -
isInline
public boolean isInline()- Specified by:
isInlinein interfacetools.jackson.core.util.DefaultPrettyPrinter.Indenter
-