Uses of Interface
eu.bandm.tools.paisley.Motif

Packages that use Motif
Package
Description
A modular implementation of nondeterministic pattern matching on arbitrary objects.
 
  • Uses of Motif in eu.bandm.tools.paisley

    Methods in eu.bandm.tools.paisley that return Motif
    Modifier and Type
    Method
    Description
    default <C> Motif<A,C>
    Motif.andThen(Motif<? extends B,C> after)
    Returns a composed motif that first applies this motif to its input pattern, and then applies a given motif to the result.
    static <A, B> Motif<A,B>
    Motif.both(Motif<? extends A,? super B> left, Motif<? extends A,? super B> right)
    Combine two motifs conjunctively with a shared hole.
    default <C> Motif<C,B>
    Motif.compose(Motif<C,? super A> before)
    Returns a composed motif that first applies a given motif to its input pattern, and then applies this motif to the result.
    static <A, B> Motif<A,B>
    Motif.constant(Pattern<? super B> pattern)
    Returns a constant motif that binds nothing.
    static <A, B> Motif<A,B>
    Motif.either(Motif<? extends A,? super B> left, Motif<? extends A,? super B> right)
    Combine two motifs disjunctively with a shared hole.
    default <B extends A>
    Motif<B,B>
    Pattern.enPassant()
    Returns a motif that matches this pattern against each target and then binds the whole target.
    default Motif<A,B>
    Motif.etaExpand()
    Creates an eta-expanded variant of this motif.
    static <A, B extends A>
    Motif<B,A>
    ReflectionPatterns.forInstancesOf(Class<? extends A> src, Class<? extends B> tgt)
    Returns a motif that delegates to the hole after dynamic type checking.
    static <B> Motif<B,Object>
    ReflectionPatterns.forInstancesOf(Class<? extends B> cls)
    Returns a motif that delegates to the hole after dynamic type checking.
    static <A> Motif<A,A>
    Motif.identity()
    Returns an identity motif.
    Theme.lambda()
    Converts this pattern into a motif.
    <B> Motif<A,B>
    Variable.lambda(Pattern<B> body)
    Returns a motif that has the occurrences of this variable in the given body pattern as the hole.
    static <E, F> Motif<List<E>,List<F>>
    CollectionPatterns.map(Motif<E,F> elem)
    Lifts the given motif to lists.
    static <A, B> Motif<A,B>
    Motif.multiTransform(Function<? super B,? extends Iterable<A>> fun)
    Returns a motif that transforms the target with the given multi-valued function and then binds the result.
    default <C> Motif<C,B>
    Motif.on(Motif<C,? super A> before)
    static <A> Motif<A,A>
    Motif.plus(Motif<A,A> step)
    Returns a motif that is equivalent to one or more iterations of the given step motif.
    static <A> Motif<A,A>
    Motif.star(Motif<A,A> step)
    Returns a motif that is equivalent to zero or more iterations of the given step motif.
    default <C> Motif<A,C>
    Motif.then(Motif<? extends B,C> after)
    static <A, B> Motif<A,B>
    Motif.transform(Function<? super B,? extends A> fun)
    Returns a motif that transforms the target with the given function and binds the result.
    static <A, B> Motif<B,A>
    CachedTransform.with(CachedTransform.TryApply<? super A,? extends B> fun)
    Returns a motif that acts like an instance of this class, with the given partial transform and a hole in place of the subpattern.
    static <A> Motif<A,A>
    Filter.with(Predicate<? super A> pred)
    Returns a motif that acts as a filter pattern with the given domain predicate and a hole in place of the subpattern.
    static <A, B> Motif<B,A>
    TotalTransform.with(Function<? super A,? extends B> fun)
    Returns a motif that acts as a transforming pattern with the given transforming function and a hole in place of the subpattern.
    static <A, B> Motif<B,A>
    RestrictedTransform.withUnlessNull(Function<? super A,? extends B> fun)
    Returns a motif that acts as a transforming pattern with the given transforming function and a hole in place of the subpattern.
    Methods in eu.bandm.tools.paisley with parameters of type Motif
    Modifier and Type
    Method
    Description
    default <C> Motif<A,C>
    Motif.andThen(Motif<? extends B,C> after)
    Returns a composed motif that first applies this motif to its input pattern, and then applies a given motif to the result.
    static <A, B> Motif<A,B>
    Motif.both(Motif<? extends A,? super B> left, Motif<? extends A,? super B> right)
    Combine two motifs conjunctively with a shared hole.
    default <C> Motif<C,B>
    Motif.compose(Motif<C,? super A> before)
    Returns a composed motif that first applies a given motif to its input pattern, and then applies this motif to the result.
    static <A, B> Motif<A,B>
    Motif.either(Motif<? extends A,? super B> left, Motif<? extends A,? super B> right)
    Combine two motifs disjunctively with a shared hole.
    static <E, F> Motif<List<E>,List<F>>
    CollectionPatterns.map(Motif<E,F> elem)
    Lifts the given motif to lists.
    default <C> Motif<C,B>
    Motif.on(Motif<C,? super A> before)
    static <A> Motif<A,A>
    Motif.plus(Motif<A,A> step)
    Returns a motif that is equivalent to one or more iterations of the given step motif.
    static <A> Motif<A,A>
    Motif.star(Motif<A,A> step)
    Returns a motif that is equivalent to zero or more iterations of the given step motif.
    default <C> Motif<A,C>
    Motif.then(Motif<? extends B,C> after)
  • Uses of Motif in eu.bandm.tools.paisley.xml

    Methods in eu.bandm.tools.paisley.xml that return Motif
    Modifier and Type
    Method
    Description
    default Motif<? extends Node,Node>
    XPathPatterns.Predicate.apply(Motif<? extends Node,Node> base)
    Returns a motif that filters the node-set implied by the given motif with this predicate.
    XMLPatterns.attribute(String name)
    Returns a motif that binds the value of the attribute with the given name of any XML element node.
    XMLPatterns.attribute(String namespaceURI, String localName)
    Returns a motif that binds the value of the attribute with the given namespace URI and local name of any XML element node.
    XMLPatterns.attributeNode(String name)
    Returns a motif that binds the attribute node with the given name of any XML element node.
    XMLPatterns.attributeNode(String namespaceURI, String localName)
    Returns a motif that binds the attribute node with the given namespace URI and local name of any XML element node.
    Motif<? extends Node,Node>
    XPathPatterns.Axis.getMotif()
    Returns the motif associated with this navigation operation.
    Motif<? extends Node,Node>
    XPathPatterns.Operation.getMotif()
    Returns the motif associated with this navigation operation.
    Motif<? extends Node,Node>
    XPathPatterns.Path.getMotif()
     
    Motif<? extends Node,Node>
    XPathPatterns.Test.getMotif()
    Returns the motif associated with this navigation operation.
    static Motif<String,Node>
    XMLPatterns.processingInstruction(String target)
    Returns a motif that binds the character data of any XML processing instruction node with the given target.
    Methods in eu.bandm.tools.paisley.xml with parameters of type Motif
    Modifier and Type
    Method
    Description
    default Motif<? extends Node,Node>
    XPathPatterns.Predicate.apply(Motif<? extends Node,Node> base)
    Returns a motif that filters the node-set implied by the given motif with this predicate.