HexLongNumber

pl.iterators.stir.server.PathMatchers.HexLongNumber$
object HexLongNumber extends NumberMatcher[Long]

A PathMatcher that efficiently matches a number of hex-digits and extracts their (non-negative) Long value. The matcher will not match 0 digits or a sequence of digits that would represent an Long value larger than Long.MaxValue.

Attributes

Source
PathMatcher.scala
Graph
Supertypes
class NumberMatcher[Long]
class PathMatcher[(Long)]
trait Path => Matching[(Long)]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def fromChar(c: Char): Long

Attributes

Source
PathMatcher.scala

Inherited methods

def /[R](other: PathMatcher[R])(implicit join: Join[(Long), R]): PathMatcher[Out]

Alias for slash.

Alias for slash.

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def /: PathMatcher[L]

Alias for slash.

Alias for slash.

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def andThen[A](g: Matching[(Long)] => A): T1 => A

Attributes

Inherited from:
Function1
def append[R](other: PathMatcher[R])(implicit join: Join[(Long), R]): PathMatcher[Out]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def apply(path: Path): Matching[(T)]

Attributes

Inherited from:
NumberMatcher
Source
PathMatcher.scala
def compose[A](g: A => Path): A => R

Attributes

Inherited from:
Function1
def fromDecimalChar(c: Char): T

Attributes

Inherited from:
NumberMatcher
Source
PathMatcher.scala
def fromHexChar(c: Char): T

Attributes

Inherited from:
NumberMatcher
Source
PathMatcher.scala
def or[R >: (Long) : Tuple](other: PathMatcher[_ <: R]): PathMatcher[R]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def repeat(min: Int, max: Int, separator: PathMatcher0)(implicit lift: Lift[(Long), List]): PathMatcher[Out]

Turns this PathMatcher into one that matches a number of times (with the given separator) and potentially extracts a List of the underlying matcher's extractions. If less than min applications of the underlying matcher have succeeded the produced matcher fails, otherwise it matches up to the given max number of applications. Note that it won't fail even if more than max applications could succeed! The "surplus" path elements will simply be left unmatched.

Turns this PathMatcher into one that matches a number of times (with the given separator) and potentially extracts a List of the underlying matcher's extractions. If less than min applications of the underlying matcher have succeeded the produced matcher fails, otherwise it matches up to the given max number of applications. Note that it won't fail even if more than max applications could succeed! The "surplus" path elements will simply be left unmatched.

The result type depends on the type of the underlying matcher:

If a `matcher` is of type then `matcher.repeat(...)` is of type
`PathMatcher0` `PathMatcher0`
`PathMatcher1[T]` `PathMatcher1[List[T]`
`PathMatcher[L :Tuple]` `PathMatcher[List[L]]`

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def repeat(count: Int, separator: PathMatcher0)(implicit lift: Lift[(Long), List]): PathMatcher[Out]

Same as repeat(min = count, max = count, separator = separator).

Same as repeat(min = count, max = count, separator = separator).

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def repeat(count: Int)(implicit lift: Lift[(Long), List]): PathMatcher[Out]

Same as repeat(min = count, max = count).

Same as repeat(min = count, max = count).

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def slash[R](other: PathMatcher[R])(implicit join: Join[(Long), R]): PathMatcher[Out]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def slash: PathMatcher[L]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def tflatMap[R : Tuple](f: ((Long)) => Option[R]): PathMatcher[R]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def tmap[R : Tuple](f: ((Long)) => R): PathMatcher[R]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.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 transform[R : Tuple](f: Matching[(Long)] => Matching[R]): PathMatcher[R]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala

Operator alternative to PathMatchers.not

Operator alternative to PathMatchers.not

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def |[R >: (Long) : Tuple](other: PathMatcher[_ <: R]): PathMatcher[R]

Alias for or.

Alias for or.

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala
def ~[R](other: PathMatcher[R])(implicit join: Join[(Long), R]): PathMatcher[Out]

Alias for append.

Alias for append.

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala

Inherited fields

val maxDivBase: Long

Attributes

Inherited from:
NumberMatcher
Source
PathMatcher.scala
val minusOne: Long

Attributes

Inherited from:
NumberMatcher
Source
PathMatcher.scala

Implicits

Inherited implicits

implicit val ev: Tuple[(Long)]

Attributes

Inherited from:
PathMatcher
Source
PathMatcher.scala