Class StringNodeVisitor.Builder
java.lang.Object
dev.siroshun.configapi.core.node.visitor.StringNodeVisitor.Builder
- Enclosing class:
- StringNodeVisitor
A builder class of
StringNodeVisitor
.-
Method Summary
Modifier and TypeMethodDescription@NotNull StringNodeVisitor
build()
Creates a newStringBuilder
.@NotNull StringNodeVisitor.Builder
setObjectAppender
(StringNodeVisitor.Appender<Object> objectAppender) Sets aStringNodeVisitor.Appender
forObjectNode
s.@NotNull StringNodeVisitor.Builder
setStringAppender
(StringNodeVisitor.Appender<String> stringAppender) Sets aStringNodeVisitor.Appender
forStringValue
s.@NotNull StringNodeVisitor.Builder
setStringBuilder
(StringBuilder builder) Sets aStringBuilder
to append string-represented nodes.
-
Method Details
-
setStringBuilder
@Contract("_ -> this") @NotNull public @NotNull StringNodeVisitor.Builder setStringBuilder(StringBuilder builder) Sets aStringBuilder
to append string-represented nodes.- Parameters:
builder
- aStringBuilder
- Returns:
- this
StringNodeVisitor.Builder
instance
-
setStringAppender
@Contract("_ -> this") @NotNull public @NotNull StringNodeVisitor.Builder setStringAppender(StringNodeVisitor.Appender<String> stringAppender) Sets aStringNodeVisitor.Appender
forStringValue
s.This
StringNodeVisitor.Appender
will be used inStringNodeVisitor.visit(StringValue)
.- Parameters:
stringAppender
- aStringNodeVisitor.Appender
forStringValue
s- Returns:
- this
StringNodeVisitor.Builder
instance
-
setObjectAppender
@Contract("_ -> this") @NotNull public @NotNull StringNodeVisitor.Builder setObjectAppender(StringNodeVisitor.Appender<Object> objectAppender) Sets aStringNodeVisitor.Appender
forObjectNode
s.This
StringNodeVisitor.Appender
will be used inStringNodeVisitor.visit(ObjectNode)
.- Parameters:
objectAppender
- aStringNodeVisitor.Appender
forObjectNode
s- Returns:
- this
StringNodeVisitor.Builder
instance
-
build
Creates a newStringBuilder
.- Returns:
- a new
StringBuilder
-