Package net.diversionmc.parser.group
Interface GroupSupplier<L extends ExpressionPiece,R extends ExpressionPiece>
- Type Parameters:
L- Group opening piece type.R- Group closing piece type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface GroupSupplier<L extends ExpressionPiece,R extends ExpressionPiece>
Function that creates a group from the given boundaries.
-
Method Summary
Modifier and TypeMethodDescriptionapply(L left, R right, List<ExpressionPiece> content) Create a group from the given pieces.
-
Method Details
-
apply
Create a group from the given pieces.- Parameters:
left- Left boundary. Make sure it matchesGrouper.start(ExpressionPiece)right- Right boundary. Make sure it matchesGrouper.end(ExpressionPiece)content- Pieces inside the group.- Returns:
- Group made from the pieces.
-