trait StateRules extends AnyRef
A factory for rules that apply to a particular context.
- Source
- Rules.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- StateRules
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type Rule[+A, +X] = scalap.Rule[S, S, A, X]
- abstract type S
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allOf[A, X](rules: Seq[Rule[A, X]]): (S) => Result[S, List[A], X]
Create a rule that succeeds if all of the given rules succeed.
Create a rule that succeeds if all of the given rules succeed.
- rules
the rules to apply in sequence.
- def anyOf[A, X](rules: Seq[Rule[A, X]]): scalap.Rule[S, S, List[A], X]
Create a rule that succeeds with a list of all the provided rules that succeed.
Create a rule that succeeds with a list of all the provided rules that succeed.
- rules
the rules to apply in sequence.
- def apply[A, X](f: (S) => Result[S, A, X]): scalap.Rule[S, S, A, X]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cond(f: (S) => Boolean): scalap.Rule[S, S, S, Nothing]
Create a rule that identities if f(in) is true.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get: scalap.Rule[S, S, S, Nothing]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nil: scalap.Rule[S, S, Nil.type, Nothing]
- def none: scalap.Rule[S, S, None.type, Nothing]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def read[A](f: (S) => A): scalap.Rule[S, S, A, Nothing]
- def repeatUntil[T, X](rule: Rule[(T) => T, X])(finished: (T) => Boolean)(initial: T): scalap.Rule[S, S, T, X]
Repeatedly apply a rule from initial value until finished condition is met.
- def set(s: => S): scalap.Rule[S, S, S, Nothing]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unit[A](a: => A): scalap.Rule[S, S, A, Nothing]
- def update(f: (S) => S): scalap.Rule[S, S, S, Nothing]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()