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 where the hole is never used.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 passes it on to the hole.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 passes the results to the hole.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 then passes the result to the hole.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 TypeMethodDescriptionXPathPatterns.ancestor()XPathPatterns.ancestorOrSelf()XMLPatterns.attribute()XMLPatterns.child()XMLPatterns.comment()XPathPatterns.descendant()XPathPatterns.descendantOrSelf()XMLPatterns.element()XPathPatterns.following()XPathPatterns.followingSibling()XPathPatterns.Axis.getMotif()XPathPatterns.Path.getMotif()XPathPatterns.Test.getMotif()XMLPatterns.localName()XMLPatterns.namespaceURI()XMLPatterns.nextSibling()XMLPatterns.ownerDocument()XMLPatterns.parent()XPathPatterns.preceding()XPathPatterns.precedingSibling()XMLPatterns.previousSibling()XMLPatterns.processingInstruction(String target) XPathPatterns.root()XMLPatterns.rootElement()XPathPatterns.self()XPathPatterns.step(Motif<? extends Node, Node> parent, XPathPatterns.Axis axis, XPathPatterns.Test test, XPathPatterns.Predicate... predicates) XPathPatterns.step(XPathPatterns.Axis axis, XPathPatterns.Test test, XPathPatterns.Predicate... predicates) XMLPatterns.tagName()XMLPatterns.text()Methods in eu.bandm.tools.paisley.xml with parameters of type MotifModifier and TypeMethodDescriptionXPathPatterns.step(Motif<? extends Node, Node> parent, XPathPatterns.Axis axis, XPathPatterns.Test test, XPathPatterns.Predicate... predicates) Constructors in eu.bandm.tools.paisley.xml with parameters of type Motif
compose(eu.bandm.tools.paisley.Motif<C, ? super A>)instead.