Param

magnolia1.CaseClass$.Param
See theParam companion object
trait Param[Typeclass[_], Type](val label: String, val index: Int, val repeated: Boolean, val annotations: IArray[Any], val typeAnnotations: IArray[Any]) extends Serializable

Attributes

Companion
object
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Members list

Type members

Types

type PType

Value members

Abstract methods

def default: Option[PType]

Requires compilation with -Yretain-trees on.

Requires compilation with -Yretain-trees on.

Attributes

Returns

default argument value, if any

def deref(param: Type): PType

Get the value of this param out of the supplied instance of the case class.

Get the value of this param out of the supplied instance of the case class.

Value parameters

value

an instance of the case class

Attributes

Returns

the value of this parameter in the case class

def typeclass: Typeclass[PType]

Gives the constructed typeclass for the parameter's type. Eg for a case class Foo(bar: String, baz: Int), where this Param denotes 'baz', the typeclass field returns an instance of Typeclass[Int].

Gives the constructed typeclass for the parameter's type. Eg for a case class Foo(bar: String, baz: Int), where this Param denotes 'baz', the typeclass field returns an instance of Typeclass[Int].

Attributes

Concrete methods

def inheritedAnnotations: IArray[Any]
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
Any

Concrete fields

val annotations: IArray[Any]
val index: Int
val label: String
val repeated: Boolean
val typeAnnotations: IArray[Any]