Package de.unruh.javapatterns

A library for functional pattern matching in Java. See the README for an introduction, and the classes Match for instructions how to do pattern matches, Patterns for the predefined patterns, and Pattern for instructions how to define own patterns.
  • 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 type U.
  • Exception Summary 
    Exception Description
    InvalidPatternMatch  
    MatchException  
    PatternMatchReject