CellParser

com.phasmidsoftware.tableparser.core.parse.CellParser
See theCellParser companion trait
object CellParser

Attributes

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

Members list

Type members

Classlikes

object BigDecimalCellParser extends SingleCellParser[BigDecimal]

Attributes

Supertypes
trait SingleCellParser[BigDecimal]
trait CellParser[BigDecimal]
trait StringConverter[BigDecimal]
class Object
trait Matchable
class Any
Show all
Self type
object BigIntCellParser extends SingleCellParser[BigInt]

Attributes

Supertypes
trait SingleCellParser[BigInt]
trait CellParser[BigInt]
trait StringConverter[BigInt]
class Object
trait Matchable
class Any
Show all
Self type
object BooleanCellParser extends SingleCellParser[Boolean]

Attributes

Supertypes
trait SingleCellParser[Boolean]
trait CellParser[Boolean]
trait StringConverter[Boolean]
class Object
trait Matchable
class Any
Show all
Self type
object BooleanOptionParser extends OptionParser[Boolean]

Attributes

Supertypes
class OptionParser[Boolean]
trait SingleCellParser[Option[Boolean]]
trait CellParser[Option[Boolean]]
trait StringConverter[Option[Boolean]]
class Object
trait Matchable
class Any
Show all
Self type
object ByteCellParser extends SingleCellParser[Byte]

Attributes

Supertypes
trait SingleCellParser[Byte]
trait CellParser[Byte]
trait StringConverter[Byte]
class Object
trait Matchable
class Any
Show all
Self type
object CharCellParser extends SingleCellParser[Char]

Attributes

Supertypes
trait SingleCellParser[Char]
trait CellParser[Char]
trait StringConverter[Char]
class Object
trait Matchable
class Any
Show all
Self type
object DoubleCellParser extends SingleCellParser[Double]

Attributes

Supertypes
trait SingleCellParser[Double]
trait CellParser[Double]
trait StringConverter[Double]
class Object
trait Matchable
class Any
Show all
Self type
object DoubleOptionParser extends OptionParser[Double]

Attributes

Supertypes
class OptionParser[Double]
trait SingleCellParser[Option[Double]]
trait CellParser[Option[Double]]
trait StringConverter[Option[Double]]
class Object
trait Matchable
class Any
Show all
Self type
object FileOptionParser extends OptionParser[File]

Attributes

Supertypes
class OptionParser[File]
trait SingleCellParser[Option[File]]
trait CellParser[Option[File]]
trait StringConverter[Option[File]]
class Object
trait Matchable
class Any
Show all
Self type
object FileParser extends SingleCellParser[File]

Attributes

Supertypes
trait SingleCellParser[File]
trait CellParser[File]
trait StringConverter[File]
class Object
trait Matchable
class Any
Show all
Self type
FileParser.type
object FloatCellParser extends SingleCellParser[Float]

Attributes

Supertypes
trait SingleCellParser[Float]
trait CellParser[Float]
trait StringConverter[Float]
class Object
trait Matchable
class Any
Show all
Self type
object IntCellParser extends SingleCellParser[Int]

Attributes

Supertypes
trait SingleCellParser[Int]
trait CellParser[Int]
trait StringConverter[Int]
class Object
trait Matchable
class Any
Show all
Self type
object IntOptionParser extends OptionParser[Int]

Attributes

Supertypes
class OptionParser[Int]
trait SingleCellParser[Option[Int]]
trait CellParser[Option[Int]]
trait StringConverter[Option[Int]]
class Object
trait Matchable
class Any
Show all
Self type
object LocalDateOptionParser extends OptionParser[LocalDate]

Attributes

Supertypes
class OptionParser[LocalDate]
trait SingleCellParser[Option[LocalDate]]
trait CellParser[Option[LocalDate]]
trait StringConverter[Option[LocalDate]]
class Object
trait Matchable
class Any
Show all
Self type
object LocalDateParser extends SingleCellParser[LocalDate]

Attributes

Supertypes
trait SingleCellParser[LocalDate]
trait CellParser[LocalDate]
trait StringConverter[LocalDate]
class Object
trait Matchable
class Any
Show all
Self type
object LongCellParser extends SingleCellParser[Long]

Attributes

Supertypes
trait SingleCellParser[Long]
trait CellParser[Long]
trait StringConverter[Long]
class Object
trait Matchable
class Any
Show all
Self type
object LongOptionParser extends OptionParser[Long]

Attributes

Supertypes
class OptionParser[Long]
trait SingleCellParser[Option[Long]]
trait CellParser[Option[Long]]
trait StringConverter[Option[Long]]
class Object
trait Matchable
class Any
Show all
Self type
abstract class OptionParser[T] extends SingleCellParser[Option[T]]

Attributes

Supertypes
trait SingleCellParser[Option[T]]
trait CellParser[Option[T]]
trait StringConverter[Option[T]]
class Object
trait Matchable
class Any
Show all
Known subtypes
object ShortCellParser extends SingleCellParser[Short]

Attributes

Supertypes
trait SingleCellParser[Short]
trait CellParser[Short]
trait StringConverter[Short]
class Object
trait Matchable
class Any
Show all
Self type
object StringCellParser extends SingleCellParser[String]

This parser succeeds on empty strings.

This parser succeeds on empty strings.

Attributes

Supertypes
trait SingleCellParser[String]
trait CellParser[String]
trait StringConverter[String]
class Object
trait Matchable
class Any
Show all
Self type
object URLOptionParser extends OptionParser[URL]

Attributes

Supertypes
class OptionParser[URL]
trait SingleCellParser[Option[URL]]
trait CellParser[Option[URL]]
trait StringConverter[Option[URL]]
class Object
trait Matchable
class Any
Show all
Self type
object URLParser extends SingleCellParser[URL]

Attributes

Supertypes
trait SingleCellParser[URL]
trait CellParser[URL]
trait StringConverter[URL]
class Object
trait Matchable
class Any
Show all
Self type
URLParser.type

Value members

Concrete methods

inline def derived[T](using m: ProductOf[T]): CellParser[T]

Method to derive a CellParser[T] for a case class T, so that case class T(...) derives CellParser works. This replaces the cellParser1 ... cellParser13 methods of 1.x, and has no limit on the number of fields.

Method to derive a CellParser[T] for a case class T, so that case class T(...) derives CellParser works. This replaces the cellParser1 ... cellParser13 methods of 1.x, and has no limit on the number of fields.

Each field is read from the column whose name is given by ColumnHelper[T] for that field's name. The field names come from the Mirror (at compile time), in declaration order. A field whose type is itself a case class, and which has no CellParser of its own, is derived in turn.

NOTE: for a case class, the Mirror is its companion object. So, for a case class defined locally (inside a method), don't derive its CellParser inside a companion object that you write for it: initializing that object would refer to itself and never finish (a StackOverflowError). Use derives CellParser, or define the given alongside the case class: both work for local case classes. Case classes that are not local can also derive inside their companion objects.

Type parameters

T

a case class.

Value parameters

m

the Mirror of T.

Attributes

Returns

a CellParser[T].