NTObjReader

viz.Macros.NTObjReader
final class NTObjReader[N <: Tuple, V <: Tuple](paramCount: Int, fieldNames: => Tuple, fieldReaders: => Tuple) extends CaseClassReader3V2[NamedTuple[N, V]]

Attributes

Graph
Supertypes
class CaseClassReader3V2[NamedTuple[N, V]]
class CaseClassReader[NamedTuple[N, V]]
trait SimpleReader[NamedTuple[N, V]]
trait SimpleVisitor[Any, NamedTuple[N, V]]
trait Reader[NamedTuple[N, V]]
trait Visitor[Any, NamedTuple[N, V]]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

trait ObjectContext extends ObjVisitor[Any, T], BaseCaseObjectContext

Attributes

Inherited from:
CaseClassReader3V2
Supertypes
trait BaseCaseObjectContext
trait ObjVisitor[Any, T]
trait ObjArrVisitor[Any, T]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

override def allKeysArray: Array[String]

Attributes

Definition Classes
CaseClassReader3V2
override def keyToIndex(x: String): Int

Attributes

Definition Classes
CaseClassReader3V2
override def storeDefaults(x: BaseCaseObjectContext): Unit

Attributes

Definition Classes
CaseClassReader3V2
override def visitors0: (AnyRef, Array[AnyRef])

Attributes

Definition Classes
CaseClassReader3V2

Inherited methods

override def expectedMsg: String

Attributes

Definition Classes
CaseClassReader -> SimpleVisitor
Inherited from:
CaseClassReader
override def map[Z](f: NamedTuple[N, V] => Z): Types.this.Reader[Z]

Attributes

Definition Classes
Reader -> Visitor
Inherited from:
Reader
override def mapNulls[Z](f: NamedTuple[N, V] => Z): Types.this.Reader[Z]

Attributes

Definition Classes
Reader -> Visitor
Inherited from:
Reader
def narrow[K <: NamedTuple[N, V]]: Types.this.Reader[K]

Attributes

Inherited from:
Reader
def visitArray(length: Int, index: Int): ArrVisitor[Any, NamedTuple[N, V]]

Value parameters

index

json source position at the start of the [ being visited

Attributes

Returns

a Visitor used for visiting the elements of the array

Inherited from:
SimpleVisitor
def visitBinary(bytes: Array[Byte], offset: Int, len: Int, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
SimpleVisitor
def visitChar(s: Char, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
SimpleVisitor
def visitExt(tag: Byte, bytes: Array[Byte], offset: Int, len: Int, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
SimpleVisitor
def visitFalse(index: Int): NamedTuple[N, V]

Value parameters

index

json source position at the start of the false being visited

Attributes

Inherited from:
SimpleVisitor
def visitFloat32(d: Float, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
SimpleVisitor
def visitFloat64(d: Double, index: Int): NamedTuple[N, V]

Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).

Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).

Delegates to visitFloat64StringParts if not overriden

Value parameters

d

the input number

index

json source position at the start of the number being visited

Attributes

Inherited from:
SimpleVisitor
def visitFloat64ByteParts(s: Array[Byte], arrOffset: Int, arrLength: Int, decIndex: Int, expIndex: Int, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
Visitor
def visitFloat64CharParts(s: Array[Char], arrOffset: Int, arrLength: Int, decIndex: Int, expIndex: Int, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
Visitor
def visitFloat64String(s: String, index: Int): NamedTuple[N, V]

Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

Value parameters

index

json source position at the start of the string being visited

s

the text string being visited

Attributes

Inherited from:
SimpleVisitor
def visitFloat64StringParts(s: CharSequence, decIndex: Int, expIndex: Int, index: Int): NamedTuple[N, V]

Visit the number in its text representation.

Visit the number in its text representation.

Value parameters

decIndex

index of the ., relative to the start of the CharSequence, or -1 if omitted

expIndex

index of e or E relative to the start of the CharSequence, or -1 if omitted

index

json source position at the start of the number being visited

s

unparsed text representation of the number.

Attributes

Inherited from:
SimpleVisitor
def visitInt32(i: Int, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
SimpleVisitor
def visitInt64(i: Long, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
SimpleVisitor
def visitNull(index: Int): NamedTuple[N, V]

Value parameters

index

json source position at the start of the null being visited

Attributes

Inherited from:
SimpleVisitor
override def visitObject(length: Int, jsonableKeys: Boolean, index: Int): ObjVisitor[Any, NamedTuple[N, V]]

Value parameters

index

json source position at the start of the { being visited

Attributes

Returns

a ObjVisitor used for visiting the keys/values of the object

Definition Classes
CaseClassReader3V2 -> SimpleVisitor -> Visitor
Inherited from:
CaseClassReader3V2
override def visitString(s: CharSequence, index: Int): NamedTuple[N, V]

Value parameters

index

json source position at the start of the string being visited

s

the text string being visited

Attributes

Definition Classes
CaseClassReader -> SimpleVisitor -> Visitor
Inherited from:
CaseClassReader
def visitTrue(index: Int): NamedTuple[N, V]

Value parameters

index

json source position at the start of the true being visited

Attributes

Inherited from:
SimpleVisitor
def visitUInt64(i: Long, index: Int): NamedTuple[N, V]

Attributes

Inherited from:
SimpleVisitor
def visitorMap: Object

Attributes

Inherited from:
CaseClassReader3V2
def visitors: Array[AnyRef]

Attributes

Inherited from:
CaseClassReader3V2

Concrete fields

lazy val fN: Array[String]
lazy val fR: Array[Object]

Inherited fields

lazy val hasFlattenOnMap: Boolean

Attributes

Inherited from:
CaseClassReader3V2