Object

com.github.j5ik2o.reactive.redis.parser.util.instance

SliceableTypes

Related Doc: package instance

Permalink

object SliceableTypes

Annotations
@SuppressWarnings()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SliceableTypes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Failure(get: ParseError, isCommitted: Boolean) extends Result[Nothing] with Product with Serializable

    Permalink
  2. final case class ParseState(loc: Location, isSliced: Boolean) extends Product with Serializable

    Permalink

    isSliced indicates if the current parser is surround by a slice combinator.

    isSliced indicates if the current parser is surround by a slice combinator. This lets us avoid building up values that will end up getting thrown away.

    There are several convenience functions on ParseState to make implementing some of the combinators easier.

  3. type Parser[+A] = (ParseState) ⇒ Result[A]

    Permalink
  4. sealed trait Result[+A] extends AnyRef

    Permalink

    The result of a parse--a Parser[A] returns a Result[A].

    The result of a parse--a Parser[A] returns a Result[A].

    There are three cases:

    • Success(a,n): a is the value, n is # of consumed characters
    • Slice(n): a successful slice; n is the # of consumed characters
    • Failure(n,isCommitted): a failing parse

    As usual, we define some helper functions on Result. Defining functions on Result gives us better type information--there are cases (see map and map2 below) where Scala will not appropriately refine type information when pattern matching on Result.

  5. final case class Slice(length: Int) extends Result[String] with Product with Serializable

    Permalink
  6. final case class Success[+A](get: A, length: Int) extends Result[A] with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def firstNonmatchingIndex(s: String, s2: String, offset: Int): Int

    Permalink

    Returns -1 if s.startsWith(s2), otherwise returns the first index where the two strings differed.

    Returns -1 if s.startsWith(s2), otherwise returns the first index where the two strings differed. If s2 is longer than s1, returns s.length.

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped