DefaultRule

org.json4s.scalap.Rules.DefaultRule
class DefaultRule[In, Out, A, X](f: In => Result[Out, A, X]) extends Rule[In, Out, A, X]

Attributes

Source
Rules.scala
Graph
Supertypes
trait Rule[In, Out, A, X]
trait In => Result[Out, A, X]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(in: In): Result[Out, A, X]

Attributes

Source
Rules.scala

Inherited methods

def !^[Y](fx2y: X => Y): Rule[In, Out, A, Y]

Maps an Error

Maps an Error

Attributes

Inherited from:
Rule
Source
Rule.scala
def -[In2 <: In](exclude: => Rule[In2, Any, Any, Any]): Rule[In2, Out, A, X]

Attributes

Inherited from:
Rule
Source
Rule.scala
def -^[B](b: B): Rule[In, Out, B, X]

Attributes

Inherited from:
Rule
Source
Rule.scala
def -~[Out2, B, X2 >: X](next: => Rule[Out, Out2, B, X2]): Rule[In, Out2, B, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def -~![Out2, B, X2 >: X](next: => Rule[Out, Out2, B, X2]): Rule[In, Out2, B, Any]

Attributes

Inherited from:
Rule
Source
Rule.scala
def <~:[InPrev, B, X2 >: X](prev: => Rule[InPrev, In, A => B, X2]): Rule[InPrev, Out, B, X2]

Apply the result of this rule to the function returned by the previous rule

Apply the result of this rule to the function returned by the previous rule

Attributes

Inherited from:
Rule
Source
Rule.scala
def >->[Out2, B, X2 >: X](fa2resultb: A => Result[Out2, B, X2]): Rule[In, Out2, B, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def >>[Out2, B, X2 >: X](fa2ruleb: A => Out => Result[Out2, B, X2]): Rule[In, Out2, B, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def >>&[B, X2 >: X](fa2ruleb: A => Out => Result[Any, B, X2]): Rule[In, Out, B, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def >>?[Out2, B, X2 >: X](pf: PartialFunction[A, Rule[Out, Out2, B, X2]]): Rule[In, Out2, B, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def >~>[Out2, B1, B2, B >: A, C, X2 >: X](f: (B1, B2) => Out => Result[Out2, C, X2])(implicit A: A => B1 ~ B2): Rule[In, Out2, C, X2]

~>(f) is equivalent to >> { case b1 ~ b2 => f(b1, b2) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ??(pf: PartialFunction[A, Any]): Rule[In, Out, A, X]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^-^[B1, B2 >: A, C](f: (B1, B2) => C): Rule[In, Out, B1 => C, X]

^-^(f) is equivalent to ^^ { b2 => b1 => f(b1, b2) }

^-^(f) is equivalent to ^^ { b2 => b1 => f(b1, b2) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^^[B](fa2b: A => B): Rule[In, Out, B, X]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^^?[B](pf: PartialFunction[A, B]): Rule[In, Out, B, X]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^~>~^[B1, B2, B3, B >: A, C](f: (B1, B2, B3) => C)(implicit A: A => B2 ~ B3): Rule[In, Out, B1 => C, X]

^~>~^(f) is equivalent to ^^ { case b2 ~ b3 => b1 => f(b1, b2, b3) }

^~>~^(f) is equivalent to ^^ { case b2 ~ b3 => b1 => f(b1, b2, b3) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^~^[B1, B2, B >: A, C](f: (B1, B2) => C)(implicit A: A => B1 ~ B2): Rule[In, Out, C, X]

^~^(f) is equivalent to ^^ { case b1 ~ b2 => f(b1, b2) }

^~^(f) is equivalent to ^^ { case b1 ~ b2 => f(b1, b2) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^~~^[B1, B2, B3, B >: A, C](f: (B1, B2, B3) => C)(implicit A: A => B1 ~ B2 ~ B3): Rule[In, Out, C, X]

^~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 => f(b1, b2, b3) }

^~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 => f(b1, b2, b3) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^~~~^[B1, B2, B3, B4, B >: A, C](f: (B1, B2, B3, B4) => C)(implicit A: A => B1 ~ B2 ~ B3 ~ B4): Rule[In, Out, C, X]

^~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 => f(b1, b2, b3, b4) }

^~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 => f(b1, b2, b3, b4) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^~~~~^[B1, B2, B3, B4, B5, B >: A, C](f: (B1, B2, B3, B4, B5) => C)(implicit A: A => B1 ~ B2 ~ B3 ~ B4 ~ B5): Rule[In, Out, C, X]

^~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 => f(b1, b2, b3, b4, b5) }

^~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 => f(b1, b2, b3, b4, b5) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^~~~~~^[B1, B2, B3, B4, B5, B6, B >: A, C](f: (B1, B2, B3, B4, B5, B6) => C)(implicit A: A => B1 ~ B2 ~ B3 ~ B4 ~ B5 ~ B6): Rule[In, Out, C, X]

^~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }

^~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def ^~~~~~~^[B1, B2, B3, B4, B5, B6, B7, B >: A, C](f: (B1, B2, B3, B4, B5, B6, B7) => C)(implicit A: A => B1 ~ B2 ~ B3 ~ B4 ~ B5 ~ B6 ~ B7): Rule[In, Out, C, X]

^~~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }

^~~~~~~^(f) is equivalent to ^^ { case b1 ~ b2 ~ b3 ~ b4 ~ b5 ~ b6 => f(b1, b2, b3, b4, b5, b6) }

Attributes

Inherited from:
Rule
Source
Rule.scala
def andThen[A](g: (Result[Out, A, X]) => A): In => A

Attributes

Inherited from:
Function1
def as(name: String): Rule[In, Out, A, X] & Name

Attributes

Inherited from:
Rule
Source
Rule.scala
def compose[A](g: A => In): A => Result[Out, A, X]

Attributes

Inherited from:
Function1
def filter(f: A => Boolean): Rule[In, Out, A, X]

Attributes

Inherited from:
Rule
Source
Rule.scala
def flatMap[Out2, B, X2 >: X](fa2ruleb: A => Out => Result[Out2, B, X2]): Rule[In, Out2, B, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def map[B](fa2b: A => B): Rule[In, Out, B, X]

Attributes

Inherited from:
Rule
Source
Rule.scala
def mapResult[Out2, B, Y](f: (Result[Out, A, X]) => Result[Out2, B, Y]): Rule[In, Out2, B, Y]

Attributes

Inherited from:
Rule
Source
Rule.scala
def orElse[In2 <: In, Out2 >: Out, A2 >: A, X2 >: X](other: => Rule[In2, Out2, A2, X2]): Rule[In2, Out2, A2, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def orError[In2 <: In]: Rule[In, Out, A, Any]

Attributes

Inherited from:
Rule
Source
Rule.scala
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1
def |[In2 <: In, Out2 >: Out, A2 >: A, X2 >: X](other: => Rule[In2, Out2, A2, X2]): Rule[In2, Out2, A2, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ~[Out2, B, X2 >: X](next: => Rule[Out, Out2, B, X2]): Rule[In, Out2, A ~ B, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ~![Out2, B, X2 >: X](next: => Rule[Out, Out2, B, X2]): Rule[In, Out2, A ~ B, Any]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ~++[Out2, B >: A, X2 >: X](next: => Rule[Out, Out2, Seq[B], X2]): Rule[In, Out2, List[B], X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ~-[Out2, B, X2 >: X](next: => Rule[Out, Out2, B, X2]): Rule[In, Out2, A, X2]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ~-![Out2, B, X2 >: X](next: => Rule[Out, Out2, B, X2]): Rule[In, Out2, A, Any]

Attributes

Inherited from:
Rule
Source
Rule.scala
def ~>[Out2, B, X2 >: X](next: => Rule[Out, Out2, A => B, X2]): Rule[In, Out2, B, X2]

Apply the result of this rule to the function returned by the next rule

Apply the result of this rule to the function returned by the next rule

Attributes

Inherited from:
Rule
Source
Rule.scala

Concrete fields

val factory: Rules

Attributes

Source
Rules.scala