Package eu.bandm.tools.paisley
Class Both<A>
java.lang.Object
eu.bandm.tools.paisley.AbstractPattern<A>
eu.bandm.tools.paisley.Binary<A,A,A>
eu.bandm.tools.paisley.Both<A>
- Type Parameters:
A- the target type of objects to match against
- All Implemented Interfaces:
Pattern<A>,Serializable,Cloneable
- Direct Known Subclasses:
Both.Backtrack,Both.NoBacktrack
@Generated(generator="eu.bandm.tools.expander",
version="",
timestamp="2026-01-24T11:39:07")
abstract class Both<A>
extends Binary<A,A,A>
Base class of binary pattern conjunction.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classBacktracking variant of binary pattern conjunction.(package private) static final classNon-backtracking variant of binary pattern conjunction. -
Field Summary
-
Method Summary
Methods inherited from class eu.bandm.tools.paisley.AbstractPattern
clone, doclone
-
Method Details
-
binds
Checks whether a variable is bound by this pattern.The default implementation returns
false.- Parameters:
v- a pattern variable- Returns:
trueif the variable is guaranteed to have a meaningful value when this pattern is open,falseotherwise.
-
preserves
Checks whether a variable is preserved by this pattern, conditionally on success or failure.The default implementation returns
false.- Parameters:
v- a pattern variablesuccess- specifies preservation on success or failure- Returns:
trueif the variable value is guaranteed to be unaffected by a matching attempt with this pattern that returns a value equal tosuccess.
-