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 StringNodeVisitorbuild()Creates a newStringBuilder.@NotNull StringNodeVisitor.BuildersetObjectAppender(StringNodeVisitor.Appender<Object> objectAppender) Sets aStringNodeVisitor.AppenderforObjectNodes.@NotNull StringNodeVisitor.BuildersetStringAppender(StringNodeVisitor.Appender<String> stringAppender) Sets aStringNodeVisitor.AppenderforStringValues.@NotNull StringNodeVisitor.BuildersetStringBuilder(StringBuilder builder) Sets aStringBuilderto append string-represented nodes.
-
Method Details
-
setStringBuilder
@Contract("_ -> this") @NotNull public @NotNull StringNodeVisitor.Builder setStringBuilder(StringBuilder builder) Sets aStringBuilderto append string-represented nodes.- Parameters:
builder- aStringBuilder- Returns:
- this
StringNodeVisitor.Builderinstance
-
setStringAppender
@Contract("_ -> this") @NotNull public @NotNull StringNodeVisitor.Builder setStringAppender(StringNodeVisitor.Appender<String> stringAppender) Sets aStringNodeVisitor.AppenderforStringValues.This
StringNodeVisitor.Appenderwill be used inStringNodeVisitor.visit(StringValue).- Parameters:
stringAppender- aStringNodeVisitor.AppenderforStringValues- Returns:
- this
StringNodeVisitor.Builderinstance
-
setObjectAppender
@Contract("_ -> this") @NotNull public @NotNull StringNodeVisitor.Builder setObjectAppender(StringNodeVisitor.Appender<Object> objectAppender) Sets aStringNodeVisitor.AppenderforObjectNodes.This
StringNodeVisitor.Appenderwill be used inStringNodeVisitor.visit(ObjectNode).- Parameters:
objectAppender- aStringNodeVisitor.AppenderforObjectNodes- Returns:
- this
StringNodeVisitor.Builderinstance
-
build
Creates a newStringBuilder.- Returns:
- a new
StringBuilder
-