- Type Parameters:
- V- the node type the tree-pattern is working on
- All Known Implementing Classes:
- TreePattern.Val,- TreePattern.Var
- Enclosing class:
- TreePattern<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:
- 
Method SummaryModifier and TypeMethodDescription<B> TreePattern.Decl<B>Returns a newTreePattern.Declobject with the mapped typeB.static <V> TreePattern.Decl<V>
- 
Method Details- 
mapReturns a newTreePattern.Declobject with the mapped typeB.- Type Parameters:
- B- the mapped type
- Parameters:
- mapper- the mapping function
- Returns:
- the mapped declaration
- Throws:
- NullPointerException- if the mapping function is- null
 
- 
of
 
-