LeafCursor

case class LeafCursor[T](context: Context, focus: T, encoder: Encoder[T], parent: Option[Cursor], env: Env) extends AbstractCursor[T]
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any

Value members

Concrete methods

override def asLeaf: Result[Json]
Definition Classes
AbstractCursor -> Cursor
override def isLeaf: Boolean
Definition Classes
AbstractCursor -> Cursor
def withEnv(env0: Env): Cursor

Inherited methods

def as[T](implicit evidence$2: ClassTag[T]): Result[T]

Yield the value at this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Yield the value at this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Inherited from
Cursor
def asList: Result[List[Cursor]]
Inherited from
AbstractCursor
def asNullable: Result[Option[Cursor]]
Inherited from
AbstractCursor
def env[T](nme: String)(implicit evidence$1: ClassTag[T]): Option[T]
Inherited from
Cursor
def field(fieldName: String, resultName: Option[String]): Result[Cursor]
Inherited from
AbstractCursor
def fieldAs[T](fieldName: String)(implicit evidence$3: ClassTag[T]): Result[T]

Yield the value of the field fieldName of this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Yield the value of the field fieldName of this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Inherited from
Cursor
def flatListPath(fns: List[String]): Result[List[Cursor]]

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path. If the field at the end of the path is a list then yield the concatenation of the lists of cursors corresponding to the field elements.

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path. If the field at the end of the path is a list then yield the concatenation of the lists of cursors corresponding to the field elements.

Inherited from
Cursor
def fullEnv: Env
Inherited from
Cursor
def hasField(fieldName: String): Boolean
Inherited from
AbstractCursor
def hasListPath(fns: List[String]): Boolean

Does the value at this Cursor generate a list along the path fns?

Does the value at this Cursor generate a list along the path fns?

true if fns is a valid path from the value at this Cursor and passes through at least one field with a list type.

Inherited from
Cursor
def hasPath(fns: List[String]): Boolean

Does the value at this Cursor have a field identified by the path fns?

Does the value at this Cursor have a field identified by the path fns?

Inherited from
Cursor
def isList: Boolean
Inherited from
AbstractCursor
def isNull: Boolean
Inherited from
Cursor
def isNullable: Boolean
Inherited from
AbstractCursor
def listPath(fns: List[String]): Result[List[Cursor]]

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path.

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path.

Inherited from
Cursor
def narrow(subtpe: TypeRef): Result[Cursor]
Inherited from
AbstractCursor
def narrowsTo(subtpe: TypeRef): Boolean
Inherited from
AbstractCursor
def nullableField(fieldName: String): Result[Cursor]

Yield a Cursor corresponding to the value of the possibly nullable field fieldName of the value at this Cursor, or an error on the left hand side if there is no such field.

Yield a Cursor corresponding to the value of the possibly nullable field fieldName of the value at this Cursor, or an error on the left hand side if there is no such field.

Inherited from
Cursor
def nullableHasField(fieldName: String): Boolean

Does the possibly nullable value at this Cursor have a field named fieldName?

Does the possibly nullable value at this Cursor have a field named fieldName?

Inherited from
Cursor
def path(fns: List[String]): Result[Cursor]

Yield a Cursor corresponding to the value of the field identified by path fns starting from the value at this Cursor, or an error on the left hand side if there is no such field.

Yield a Cursor corresponding to the value of the field identified by path fns starting from the value at this Cursor, or an error on the left hand side if there is no such field.

Inherited from
Cursor
def path: List[String]

The selection path from the root

The selection path from the root

Inherited from
Cursor
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def resultPath: List[String]

The selection path from the root modified by query aliases

The selection path from the root modified by query aliases

Inherited from
Cursor
def tpe: Type

The GraphQL type of the value at the position represented by this Cursor.

The GraphQL type of the value at the position represented by this Cursor.

Inherited from
Cursor