Package eu.bandm.tools.paisley
Class Constraint
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
Observer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.paisley.Pattern
Pattern.Either<A>
-
Field Summary
Fields inherited from class eu.bandm.tools.paisley.Pattern
_left_matched, _target_save, none
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Constraint
all
(Constraint... cs) static Constraint
all
(List<? extends Constraint> cs) protected void
compileMatch
(CompilationContext context) boolean
Attempts to match this pattern against a given object.static Constraint
some
(Constraint... cs) static Constraint
some
(List<? extends Constraint> cs) abstract boolean
test()
Methods inherited from class eu.bandm.tools.paisley.Atomic
anyObject, binds, clone, compileClear, compileClear, compileCut, compileCut, compileMatchAgain, isDeterministic, matchAgain, preserves, preserves
Methods inherited from class eu.bandm.tools.paisley.Pattern
all, all, all, all, all, and, andThen, andThen, any, aside, both, clear, clear, compile, compileIsDeterministic, compileSubPattern, compileThis, compileUpTo, cut, cut, DEBUG, either, enPassant, flatten, limit, main, matchOnce, matchVar, narrow, newAll, noMatch, none, of, or, orElse, orElse, repeat, some, some, some, some, someMatch, startCompile, uniquely, variable, variable
-
Constructor Details
-
Constraint
public Constraint()
-
-
Method Details
-
match
Description copied from class:Pattern
Attempts to match this pattern against a given object. If the class of this pattern imposes a specific order on matches, the first one is chosen. -
test
public abstract boolean test() -
all
-
all
-
some
-
some
-
compileMatch
- Overrides:
compileMatch
in classPattern<Object>
-