TokensReader

replpp.shaded.mainargs.TokensReader$
See theTokensReader companion trait
object TokensReader

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object BooleanRead extends Simple[Boolean]

Attributes

Supertypes
trait Simple[Boolean]
trait ShortNamed[Boolean]
trait Terminal[Boolean]
trait TokensReader[Boolean]
class Object
trait Matchable
class Any
Show all
Self type
object ByteRead extends Simple[Byte]

Attributes

Supertypes
trait Simple[Byte]
trait ShortNamed[Byte]
trait Terminal[Byte]
trait TokensReader[Byte]
class Object
trait Matchable
class Any
Show all
Self type
ByteRead.type
trait Class[T] extends TokensReader[T]

A TokensReader that can parse an instance of the class T, which may contain multiple fields each parsed by their own TokensReader

A TokensReader that can parse an instance of the class T, which may contain multiple fields each parsed by their own TokensReader

Attributes

Supertypes
trait TokensReader[T]
class Object
trait Matchable
class Any
Known subtypes
class ParserForClass[T]
trait Constant[T] extends Terminal[T]

A TokensReader that doesn't read any tokens and just returns a value. Useful sometimes for injecting things into main methods that aren't strictly computed from CLI argument tokens but nevertheless need to get passed in.

A TokensReader that doesn't read any tokens and just returns a value. Useful sometimes for injecting things into main methods that aren't strictly computed from CLI argument tokens but nevertheless need to get passed in.

Attributes

Supertypes
trait Terminal[T]
trait TokensReader[T]
class Object
trait Matchable
class Any
object DoubleRead extends Simple[Double]

Attributes

Supertypes
trait Simple[Double]
trait ShortNamed[Double]
trait Terminal[Double]
trait TokensReader[Double]
class Object
trait Matchable
class Any
Show all
Self type
DoubleRead.type
trait Flag extends Terminal[Flag]

A TokensReader for a flag that does not take any value, e.g. --foo

A TokensReader for a flag that does not take any value, e.g. --foo

Attributes

Supertypes
trait Terminal[Flag]
class Object
trait Matchable
class Any
Known subtypes
object FlagRead.type
object FlagRead extends Flag

Attributes

Supertypes
trait Flag
trait Terminal[Flag]
class Object
trait Matchable
class Any
Show all
Self type
FlagRead.type
object FloatRead extends Simple[Float]

Attributes

Supertypes
trait Simple[Float]
trait ShortNamed[Float]
trait Terminal[Float]
trait TokensReader[Float]
class Object
trait Matchable
class Any
Show all
Self type
FloatRead.type
object IntRead extends Simple[Int]

Attributes

Supertypes
trait Simple[Int]
trait ShortNamed[Int]
trait Terminal[Int]
trait TokensReader[Int]
class Object
trait Matchable
class Any
Show all
Self type
IntRead.type
trait Leftover[T, V] extends ShortNamed[T]

A TokensReader for parsing the left-over parameters that do not belong to any other flag or parameter.

A TokensReader for parsing the left-over parameters that do not belong to any other flag or parameter.

Attributes

Supertypes
trait ShortNamed[T]
trait Terminal[T]
trait TokensReader[T]
class Object
trait Matchable
class Any
Show all
Known subtypes
class LeftoverRead[T]
class LeftoverRead[T](implicit wrapped: Simple[T]) extends Leftover[Leftover[T], T]

Attributes

Supertypes
trait Leftover[Leftover[T], T]
trait ShortNamed[Leftover[T]]
trait Terminal[Leftover[T]]
class Object
trait Matchable
class Any
Show all
object LongRead extends Simple[Long]

Attributes

Supertypes
trait Simple[Long]
trait ShortNamed[Long]
trait Terminal[Long]
trait TokensReader[Long]
class Object
trait Matchable
class Any
Show all
Self type
LongRead.type
class MapRead[K, V] extends Simple[Map[K, V]]

Attributes

Supertypes
trait Simple[Map[K, V]]
trait ShortNamed[Map[K, V]]
trait Terminal[Map[K, V]]
trait TokensReader[Map[K, V]]
class Object
trait Matchable
class Any
Show all
class OptionRead[T] extends Simple[Option[T]]

Attributes

Supertypes
trait Simple[Option[T]]
trait ShortNamed[Option[T]]
trait Terminal[Option[T]]
trait TokensReader[Option[T]]
class Object
trait Matchable
class Any
Show all
class SeqRead[C <: (Iterable), T](implicit evidence$5: Simple[T], factory: Factory[T, C[T]]) extends Simple[C[T]]

Attributes

Supertypes
trait Simple[C[T]]
trait ShortNamed[C[T]]
trait Terminal[C[T]]
trait TokensReader[C[T]]
class Object
trait Matchable
class Any
Show all
sealed trait ShortNamed[T] extends Terminal[T]

Attributes

Supertypes
trait Terminal[T]
trait TokensReader[T]
class Object
trait Matchable
class Any
Known subtypes
trait Leftover[T, V]
class LeftoverRead[T]
trait Simple[T]
object BooleanRead.type
object ByteRead.type
object DoubleRead.type
object FloatRead.type
object IntRead.type
object LongRead.type
class MapRead[K, V]
class OptionRead[T]
class SeqRead[C, T]
object ShortRead.type
object StringRead.type
Show all
object ShortRead extends Simple[Short]

Attributes

Supertypes
trait Simple[Short]
trait ShortNamed[Short]
trait Terminal[Short]
trait TokensReader[Short]
class Object
trait Matchable
class Any
Show all
Self type
ShortRead.type
trait Simple[T] extends ShortNamed[T]

A TokensReader for a single CLI parameter that takes a value e.g. --foo bar

A TokensReader for a single CLI parameter that takes a value e.g. --foo bar

Attributes

Supertypes
trait ShortNamed[T]
trait Terminal[T]
trait TokensReader[T]
class Object
trait Matchable
class Any
Show all
Known subtypes
object BooleanRead.type
object ByteRead.type
object DoubleRead.type
object FloatRead.type
object IntRead.type
object LongRead.type
class MapRead[K, V]
class OptionRead[T]
class SeqRead[C, T]
object ShortRead.type
object StringRead.type
Show all
object StringRead extends Simple[String]

Attributes

Supertypes
trait Simple[String]
trait ShortNamed[String]
trait Terminal[String]
trait TokensReader[String]
class Object
trait Matchable
class Any
Show all
Self type
StringRead.type
sealed trait Terminal[T] extends TokensReader[T]

Attributes

Supertypes
trait TokensReader[T]
class Object
trait Matchable
class Any
Known subtypes
trait Constant[T]
trait Flag
object FlagRead.type
trait ShortNamed[T]
trait Leftover[T, V]
class LeftoverRead[T]
trait Simple[T]
object BooleanRead.type
object ByteRead.type
object DoubleRead.type
object FloatRead.type
object IntRead.type
object LongRead.type
class MapRead[K, V]
class OptionRead[T]
class SeqRead[C, T]
object ShortRead.type
object StringRead.type
Show all

Value members

Concrete methods

def tryEither[T](f: => T): Either[String, T]

Implicits

Implicits

implicit def LeftoverRead[T : Simple]: Leftover[Leftover[T], T]
implicit def MapRead[K : Simple, V : Simple]: TokensReader[Map[K, V]]
implicit def OptionRead[T : Simple]: TokensReader[Option[T]]
implicit def SeqRead[C <: (Iterable), T : Simple](implicit evidence$4: Simple[T], factory: Factory[T, C[T]]): TokensReader[C[T]]