public interface MetaStackElement
MetaStackDefinition.
The element itself does not contain any mutable state.
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldAccumulate(@NonNull LocalizedNode node,
@NonNull ChatMetaType type,
Map.Entry<Integer,String> current)
Returns if the given node should be accumulated onto the stack.
|
boolean shouldAccumulate(@NonNull LocalizedNode node, @NonNull ChatMetaType type, Map.Entry<Integer,String> current)
The element being considered can be retrieved using ChatMetaType.getEntry(Node).
node - the node being consideredtype - the type of entry being accumulatedcurrent - the current value being used. If this returns true, the current value will be replaced by this entry