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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Constraintall(Constraint... cs) static Constraintall(List<? extends Constraint> cs) protected voidcompileMatch(CompilationContext context) booleanAttempts to match this pattern against a given object.static Constraintsome(Constraint... cs) static Constraintsome(List<? extends Constraint> cs) abstract booleantest()Methods inherited from class eu.bandm.tools.paisley.Atomic
anyObject, binds, clone, compileClear, compileClear, compileCut, compileCut, compileMatchAgain, isDeterministic, matchAgain, preserves, preservesMethods 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, once, 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:PatternAttempts 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:
compileMatchin classPattern<Object>
-