Parseable

com.phasmidsoftware.tableparser.core.parse.Parseable
See theParseable companion trait
object Parseable

The Parseable object provides a set of predefined Parseable type class instances that enable parsing of String representations into instances of various data types. These parsers operate based on the Parseable[T] trait, which defines a parse method that returns a Try[T].

This framework is designed to handle common data parsing scenarios with support for additional parsing behaviors through optional modifiers.

The parsers handle parsing errors gracefully, returning a Failure instance with an appropriate exception message when parsing fails.

Attributes

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

Members list

Type members

Classlikes

Attributes

Companion
trait
Supertypes
trait Parseable[BigDecimal]
class Object
trait Matchable
class Any
Self type
trait ParseableBigDecimal extends Parseable[BigDecimal]

Parser of BigDecimal.

Parser of BigDecimal.

Attributes

Companion
object
Supertypes
trait Parseable[BigDecimal]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait Parseable[BigInt]
class Object
trait Matchable
class Any
Self type
trait ParseableBigInt extends Parseable[BigInt]

Parser of BigInt.

Parser of BigInt.

Attributes

Companion
object
Supertypes
trait Parseable[BigInt]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait Parseable[Boolean]
class Object
trait Matchable
class Any
Self type
trait ParseableBoolean extends Parseable[Boolean]

Parser of Boolean.

Parser of Boolean.

Attributes

Companion
object
Supertypes
trait Parseable[Boolean]
class Object
trait Matchable
class Any
Known subtypes
object ParseableByte extends ParseableByte

Attributes

Companion
trait
Supertypes
trait Parseable[Byte]
class Object
trait Matchable
class Any
Self type
trait ParseableByte extends Parseable[Byte]

Parser of Byte.

Parser of Byte.

Attributes

Companion
object
Supertypes
trait Parseable[Byte]
class Object
trait Matchable
class Any
Known subtypes
object ParseableByte
object ParseableChar extends ParseableChar

Attributes

Companion
trait
Supertypes
trait Parseable[Char]
class Object
trait Matchable
class Any
Self type
trait ParseableChar extends Parseable[Char]

Parser of Char.

Parser of Char.

Attributes

Companion
object
Supertypes
trait Parseable[Char]
class Object
trait Matchable
class Any
Known subtypes
object ParseableChar

Attributes

Companion
trait
Supertypes
trait Parseable[Double]
class Object
trait Matchable
class Any
Self type
trait ParseableDouble extends Parseable[Double]

Parser of Double.

Parser of Double.

Attributes

Companion
object
Supertypes
trait Parseable[Double]
class Object
trait Matchable
class Any
Known subtypes
object ParseableFile extends ParseableFile

Attributes

Companion
trait
Supertypes
trait Parseable[File]
class Object
trait Matchable
class Any
Self type
trait ParseableFile extends Parseable[File]

Parser of File.

Parser of File.

Attributes

Companion
object
Supertypes
trait Parseable[File]
class Object
trait Matchable
class Any
Known subtypes
object ParseableFile

Attributes

Companion
trait
Supertypes
trait Parseable[Float]
class Object
trait Matchable
class Any
Self type
trait ParseableFloat extends Parseable[Float]

Parser of Float.

Parser of Float.

Attributes

Companion
object
Supertypes
trait Parseable[Float]
class Object
trait Matchable
class Any
Known subtypes
object ParseableInt extends ParseableInt

Attributes

Companion
trait
Supertypes
trait ParseableInt
trait Parseable[Int]
class Object
trait Matchable
class Any
Self type
trait ParseableInt extends Parseable[Int]

Parser of Int.

Parser of Int.

Attributes

Companion
object
Supertypes
trait Parseable[Int]
class Object
trait Matchable
class Any
Known subtypes
object ParseableInt

Attributes

Companion
trait
Supertypes
trait Parseable[LocalDate]
class Object
trait Matchable
class Any
Self type
trait ParseableLocalDate extends Parseable[LocalDate]

Parser of LocalDate.

Parser of LocalDate.

Attributes

Companion
object
Supertypes
trait Parseable[LocalDate]
class Object
trait Matchable
class Any
Known subtypes
object ParseableLong extends ParseableLong

Attributes

Companion
trait
Supertypes
trait Parseable[Long]
class Object
trait Matchable
class Any
Self type
trait ParseableLong extends Parseable[Long]

Parser of Long.

Parser of Long.

Attributes

Companion
object
Supertypes
trait Parseable[Long]
class Object
trait Matchable
class Any
Known subtypes
object ParseableLong
object ParseablePath extends ParseablePath

Attributes

Companion
trait
Supertypes
trait Parseable[Path]
class Object
trait Matchable
class Any
Self type
trait ParseablePath extends Parseable[Path]

A trait representing a path that can be parsed from a String.

A trait representing a path that can be parsed from a String.

This type class extends Parseable[java.nio.file.Path], enabling the parsing of String inputs into java.nio.file.Path objects. It provides a default implementation of the parse method, leveraging utility methods such as lift and parseAndRecover to handle parsing and recovery in case of errors.

Attributes

Companion
object
Supertypes
trait Parseable[Path]
class Object
trait Matchable
class Any
Known subtypes
object ParseablePath

Attributes

Companion
trait
Supertypes
trait Parseable[Short]
class Object
trait Matchable
class Any
Self type
trait ParseableShort extends Parseable[Short]

Parser of Short.

Parser of Short.

Attributes

Companion
object
Supertypes
trait Parseable[Short]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait Parseable[String]
class Object
trait Matchable
class Any
Self type
trait ParseableString extends Parseable[String]

Parser of String. The exception is useful for ensuring a None in the case of an optional String.

Parser of String. The exception is useful for ensuring a None in the case of an optional String.

Attributes

Companion
object
Supertypes
trait Parseable[String]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Parser of StringList. This trait splits strings of the form {x,y,z}, regardless of the format specified by the RowConfig object.

Parser of StringList. This trait splits strings of the form {x,y,z}, regardless of the format specified by the RowConfig object.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ParseableURL extends ParseableURL

Attributes

Companion
trait
Supertypes
trait ParseableURL
trait Parseable[URL]
class Object
trait Matchable
class Any
Self type
trait ParseableURL extends Parseable[URL]

Parser of URL.

Parser of URL.

Attributes

Companion
object
Supertypes
trait Parseable[URL]
class Object
trait Matchable
class Any
Known subtypes
object ParseableURL

Value members

Concrete methods

def split(w: String): Try[StringList]

Method to split a String into a StringList, parser.list.

Method to split a String into a StringList, parser.list.

Value parameters

w

the String to parse.

Attributes

Returns

a Try[StringList].