Interface MetaStackElement


  • public interface MetaStackElement
    Represents an element within a MetaStackDefinition.

    The element itself does not contain any mutable state.

    • Method Detail

      • shouldAccumulate

        boolean shouldAccumulate​(@NonNull ChatMetaType type,
                                 @NonNull ChatMetaNode<?,​?> node,
                                 @Nullable ChatMetaNode<?,​?> current)
        Returns if the given node should be accumulated onto the stack.
        Parameters:
        type - the type of entry being accumulated
        node - the node being considered
        current - the current value being used. If this returns true, the current value will be replaced by this entry
        Returns:
        true if the node should be accumulated into this element, replacing the current value