public interface MetaStackFactory
| Modifier and Type | Method and Description |
|---|---|
@NonNull MetaStackDefinition |
createDefinition(@NonNull List<MetaStackElement> elements,
@NonNull String startSpacer,
@NonNull String middleSpacer,
@NonNull String endSpacer)
Creates a new
MetaStackDefinition with the given properties. |
@NonNull Optional<MetaStackElement> |
fromString(@NonNull String definition)
Parses a standard
MetaStackElement from string, using the pre-defined elements in the plugin. |
@NonNull List<MetaStackElement> |
fromStrings(@NonNull 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 output