MultiPattern

io.eleven19.krueger.trees.query.MultiPattern
final case class MultiPattern(patterns: List[Pattern]) extends Pattern

Combines several top-level patterns into one query, each matched independently against the entire tree.

Matches from each constituent pattern are yielded in pattern order (all matches for pattern 0, then all for pattern 1, …). capture is always None; top-level patterns bind captures individually.

Attributes

Source
Query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Pattern
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala

Concrete fields

val capture: Option[CaptureName]

Optional capture name bound to the node that matches this pattern.

Optional capture name bound to the node that matches this pattern.

Attributes

Source
Query.scala