Scalax
|
|
scalax/rules/StateRules.scala
]
trait
StateRules
extends
AnyRefType Summary | |
type
|
Rule |
abstract type
|
S |
Value Summary | |
abstract val
|
factory : Rules |
Method Summary | |
def
|
allOf
[A, X](rules : scala.Seq[Rule[A, X]]) : Rule[scala.List[A], X]
Create a rule that succeeds if all of the given rules succeed.
|
def
|
apply [A, X](f : (S) => Result[S, A, X]) : Rule[S, S, A, X] |
def
|
cond
(f : (S) => Boolean) : Rule[S, S, S, Nothing]
Create a rule that suceeds if f(in) is true.
|
def
|
get : Rule[S, S, S, Nothing] |
def
|
nil : Rule[S, S, scala.Nil, Nothing] |
def
|
none : Rule[S, S, scala.None, Nothing] |
def
|
read [A](f : (S) => A) : Rule[S, S, A, Nothing] |
def
|
set (s : => S) : Rule[S, S, S, Nothing] |
def
|
unit [A](a : => A) : Rule[S, S, A, Nothing] |
def
|
update (f : (S) => S) : Rule[S, S, S, Nothing] |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Type Details |
Value Details |
Method Details |
def
none : Rule[S, S, scala.None, Nothing]
rules -
the rules to apply in sequence.
Scalax
|
|