AbstractCursor

abstract class AbstractCursor[T] extends Cursor
trait Cursor
class Object
trait Matchable
class Any
class LeafCursor[T]
class CursorImpl[T]
class CursorImpl[T]

Value members

Concrete methods

def asLeaf: Result[Json]
def asList: Result[List[Cursor]]
def asNullable: Result[Option[Cursor]]
def field(fieldName: String, resultName: Option[String]): Result[Cursor]
def hasField(fieldName: String): Boolean
def isLeaf: Boolean
def isList: Boolean
def isNullable: Boolean
def narrow(subtpe: TypeRef): Result[Cursor]
def narrowsTo(subtpe: TypeRef): Boolean

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 context: Context
Inherited from
Cursor
def env[T](nme: String)(implicit evidence$1: ClassTag[T]): Option[T]
Inherited from
Cursor
def env: Env
Inherited from
Cursor
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 focus: Any

The value at the position represented by this Cursor.

The value at the position represented by this Cursor.

Inherited from
Cursor
def fullEnv: Env
Inherited from
Cursor
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 isNull: Boolean
Inherited from
Cursor
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 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 parent: Option[Cursor]
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 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
def withEnv(env: Env): Cursor
Inherited from
Cursor