Interface TreePattern.Decl<V>

Type Parameters:
V - the node type the tree-pattern is working on
All Known Implementing Classes:
TreePattern.Val, TreePattern.Var
Enclosing class:
TreePattern<V>

public static sealed interface TreePattern.Decl<V> permits TreePattern.Var<V>, TreePattern.Val<V>
A sealed interface, which constitutes the nodes of a pattern tree. The only two implementations of this class are the TreePattern.Var and the TreePattern.Val class. The TreePattern.Var class represents a placeholder for an arbitrary subtree and the TreePattern.Val class stands for an arbitrary concrete subtree.
See Also: