public static interface Parser.Config.Builder
Parser.Config.
Fresh Builder instances are provided by
Parsers.newParserConfigBuilder(). Each Builder can
be used to construct a single Config.
Calling build() immediately on a new Builder
will return an instance of the default configuration.
| Modifier and Type | Method and Description |
|---|---|
Parser.Config |
build()
Build and return the
Parser.Config described by the
sequence of calls made on this Builder. |
Parser.Config.Builder |
putTagHandler(Tag tag,
TagHandler handler)
Register
handler as the handler to be called
with tag is encountered by the parser. |
Parser.Config.Builder |
setListFactory(CollectionBuilder.Factory f)
Use
f to provide CollectionBuilders for
representing list literals. |
Parser.Config.Builder |
setMapFactory(CollectionBuilder.Factory f)
Use
f to provide CollectionBuilders for
representing map literals. |
Parser.Config.Builder |
setSetFactory(CollectionBuilder.Factory f)
Use
f to provide CollectionBuilders for
representing set literals. |
Parser.Config.Builder |
setVectorFactory(CollectionBuilder.Factory f)
Use
f to provide CollectionBuilders for
representing vector literals. |
Parser.Config.Builder setListFactory(CollectionBuilder.Factory f)
f to provide CollectionBuilders for
representing list literals.f - not nullIllegalStateException - if build() was
previously called on this Builder.Parser.Config.Builder setVectorFactory(CollectionBuilder.Factory f)
f to provide CollectionBuilders for
representing vector literals.f - not nullIllegalStateException - if build() was
previously called on this Builder.Parser.Config.Builder setSetFactory(CollectionBuilder.Factory f)
f to provide CollectionBuilders for
representing set literals.f - not nullIllegalStateException - if build() was
previously called on this Builder.Parser.Config.Builder setMapFactory(CollectionBuilder.Factory f)
f to provide CollectionBuilders for
representing map literals.f - not nullIllegalStateException - if build() was
previously called on this Builder.Parser.Config.Builder putTagHandler(Tag tag, TagHandler handler)
handler as the handler to be called
with tag is encountered by the parser.tag - not nullhandler - not nullIllegalStateException - if build() was
previously called on this Builder.Parser.Config build()
Parser.Config described by the
sequence of calls made on this Builder. Calling
build() invalidates the builder.IllegalStateException - if build() was
previously called on this Builder.Copyright © 2019. All rights reserved.