scala.tools.scalap.scalax.rules

Rules

trait Rules extends AnyRef

A factory for rules.

Source
Rules.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Rules
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. class DefaultRule [In, Out, A, X] extends Rule[In, Out, A, X]

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def error [X] (err: X): Rule[Any, Nothing, Nothing, X]

  11. def error [In] : Rule[In, Nothing, Nothing, In]

  12. def expect [In, Out, A, Any] (rule: Rule[In, Out, A, Any]): (In) ⇒ A

    Converts a rule into a function that throws an Exception on failure.

  13. def failure : Rule[Any, Nothing, Nothing, Nothing]

  14. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def from [In] : AnyRef { def apply[Out,A,X](f: In => scala.tools.scalap.scalax.rules.Result[Out,A,X]): scala.tools.scalap.scalax.rules.Rule[In,Out,A,X] }

  16. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  17. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  18. implicit def inRule [In, Out, A, X] (rule: Rule[In, Out, A, X]): InRule[In, Out, A, X]

    Attributes
    implicit
  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def oneOf [In, Out, A, X] (rules: Rule[In, Out, A, X]*): Rule[In, Out, A, X]

  24. implicit def rule [In, Out, A, X] (f: (In) ⇒ Result[Out, A, X]): Rule[In, Out, A, X]

    Attributes
    implicit
  25. def ruleWithName [In, Out, A, X] (_name: String, f: (In) ⇒ Result[Out, A, X]): Rule[In, Out, A, X] with Name

  26. implicit def seqRule [In, A, X] (rule: Rule[In, In, A, X]): SeqRule[In, A, X]

    Attributes
    implicit
  27. def state [s] : StateRules { type S = s }

  28. def success [Out, A] (out: Out, a: A): Rule[Any, Out, A, Nothing]

  29. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  30. def toString (): String

    Definition Classes
    AnyRef → Any
  31. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any