Package de.unruh.javapatterns
-
Interface Summary Interface Description MatchRunnable<Exn extends java.lang.Throwable> MatchSupplier<Return,Exn extends java.lang.Throwable> PatternRunnable -
Class Summary Class Description Capture<T> A capturing variable in a pattern match.Case<In,Return,Exn extends java.lang.Throwable> One case in a pattern match.Match Functions for invoking pattern matches.MatchManager Manages the state of captured variables in a pattern match.Pattern<T> A pattern that matches a value and assigns values to capture variables (Capture
).Patterns This class contains static methods for constructing a number of different patterns.Patterns.Instance<U> Pattern that matches if the matched value has a specific typeU
. -
Exception Summary Exception Description InvalidPatternMatch MatchException PatternMatchReject