public interface MetaStackFactory
| Modifier and Type | Method and Description |
|---|---|
MetaStackDefinition |
createDefinition(List<MetaStackElement> elements,
String startSpacer,
String middleSpacer,
String endSpacer)
Creates a new
MetaStackDefinition with the given properties. |
Optional<MetaStackElement> |
fromString(String definition)
Parses a standard
MetaStackElement from string, using the pre-defined elements in the plugin. |
List<MetaStackElement> |
fromStrings(List<String> definitions)
Parses a list of
MetaStackElements from string, using the pre-defined elements in the plugin. |
@Nonnull Optional<MetaStackElement> fromString(@Nonnull String definition)
MetaStackElement from string, using the pre-defined elements in the plugin.definition - the definition@Nonnull List<MetaStackElement> fromStrings(@Nonnull List<String> definitions)
MetaStackElements from string, using the pre-defined elements in the plugin.
If an element cannot be parsed, it will not be included in the resultant list.
definitions - the definition strings@Nonnull MetaStackDefinition createDefinition(@Nonnull List<MetaStackElement> elements, @Nonnull String startSpacer, @Nonnull String middleSpacer, @Nonnull String endSpacer)
MetaStackDefinition with the given properties.elements - the elements to be included in the stack.startSpacer - the spacer to be included at the start of the stacks outputmiddleSpacer - the spacer to be included between stack elementsendSpacer - the spacer to be included at the end of the stacks outputCopyright © 2018. All rights reserved.