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 MotifModifier and TypeMethodDescriptionReturns 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> Combine two motifs conjunctively with a shared hole.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> Returns a constant motif that binds nothing.static <A,B> Motif <A, B> Combine two motifs disjunctively with a shared hole.Pattern.enPassant()Returns a motif that matches this pattern against each target and then binds the whole target.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.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.Returns a motif that has the occurrences of this variable in the given body pattern as the hole.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.Deprecated.static <A> Motif<A, A> Returns a motif that is equivalent to one or more iterations of the given step motif.static <A> Motif<A, A> Returns a motif that is equivalent to zero or more iterations of the given step motif.Deprecated.static <A,B> Motif <A, B> 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) static <A> Motif<A, A> static <A,B> Motif <B, A> static <A,B> Motif <B, A> RestrictedTransform.withUnlessNull(Function<? super A, ? extends B> fun) Methods in eu.bandm.tools.paisley with parameters of type MotifModifier and TypeMethodDescriptionReturns 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> Combine two motifs conjunctively with a shared hole.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> Combine two motifs disjunctively with a shared hole.Lifts the given motif to lists.Deprecated.Usecompose(eu.bandm.tools.paisley.Motif<C, ? super A>)instead.static <A> Motif<A, A> Returns a motif that is equivalent to one or more iterations of the given step motif.static <A> Motif<A, A> Returns a motif that is equivalent to zero or more iterations of the given step motif.Deprecated. -
Uses of Motif in eu.bandm.tools.paisley.xml
Methods in eu.bandm.tools.paisley.xml that return MotifModifier and TypeMethodDescriptionReturns a motif that filters the node-set implied by the given motif with this predicate.Returns a motif that binds the value of the attribute with the given name of any XML element node.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.XPathPatterns.Axis.getMotif()Returns the motif associated with this navigation operation.XPathPatterns.Operation.getMotif()Returns the motif associated with this navigation operation.XPathPatterns.Path.getMotif()XPathPatterns.Test.getMotif()Returns the motif associated with this navigation operation.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
compose(eu.bandm.tools.paisley.Motif<C, ? super A>)instead.