abstract class AbstractCursor[T] extends Cursor
- Alphabetic
- By Inheritance
- AbstractCursor
- Cursor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AbstractCursor()
Abstract Value Members
- abstract def focus: Any
The value at the position represented by this
Cursor
.The value at the position represented by this
Cursor
.- Definition Classes
- Cursor
- abstract 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
.- Definition Classes
- Cursor
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asLeaf: Result[Json]
Yield the value at this
Cursor
rendered as Json if it is of a scalar or enum type, an error or the left hand side otherwise.Yield the value at this
Cursor
rendered as Json if it is of a scalar or enum type, an error or the left hand side otherwise.- Definition Classes
- AbstractCursor → Cursor
- def asList: Result[List[Cursor]]
Yield a list of
Cursor
s corresponding to the elements of the value at thisCursor
if it is of a list type, or an error or the left hand side otherwise.Yield a list of
Cursor
s corresponding to the elements of the value at thisCursor
if it is of a list type, or an error or the left hand side otherwise.- Definition Classes
- AbstractCursor → Cursor
- def asNullable: Result[Option[Cursor]]
Yield an optional
Cursor
s corresponding to the value at thisCursor
if it is of a nullable type, or an error on the left hand side otherwise.Yield an optional
Cursor
s corresponding to the value at thisCursor
if it is of a nullable type, or an error on the left hand side otherwise. The resultingCursor
will be present iff the current value is present in the model.- Definition Classes
- AbstractCursor → Cursor
- def attrListPath(fns: List[String]): Result[List[Any]]
Yield the list of values of the attribute generated by following the path
fns
from the value at thisCursor
, or an error on the left hand side if there is no such path.Yield the list of values of the attribute generated by following the path
fns
from the value at thisCursor
, or an error on the left hand side if there is no such path.- Definition Classes
- Cursor
- def attribute(attributeName: String): Result[Any]
Yield the value of the attribute named
attributeName
of the value at thisCursor
, or an error on the left hand side if there is no such attribute.Yield the value of the attribute named
attributeName
of the value at thisCursor
, or an error on the left hand side if there is no such attribute.- Definition Classes
- AbstractCursor → Cursor
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def field(fieldName: String): Result[Cursor]
Yield a
Cursor
corresponding to the value of the fieldfieldName
of the value at thisCursor
, or an error on the left hand side if there is no such field.Yield a
Cursor
corresponding to the value of the fieldfieldName
of the value at thisCursor
, or an error on the left hand side if there is no such field.- Definition Classes
- AbstractCursor → Cursor
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasAttribute(attributeName: String): Boolean
Does the value at this
Cursor
have an attribute namedattributeName
?Does the value at this
Cursor
have an attribute namedattributeName
?- Definition Classes
- AbstractCursor → Cursor
- def hasField(fieldName: String): Boolean
Does the value at this
Cursor
have a field namedfieldName
?Does the value at this
Cursor
have a field namedfieldName
?- Definition Classes
- AbstractCursor → Cursor
- def hasListPath(fns: List[String]): Boolean
Does the value at this
Cursor
generate a list along the pathfns
?Does the value at this
Cursor
generate a list along the pathfns
?true
iffns
is a valid path from the value at thisCursor
and passes through at least one field with a list type.- Definition Classes
- Cursor
- def hasPath(fns: List[String]): Boolean
Does the value at this
Cursor
have a field identified by the pathfns
?Does the value at this
Cursor
have a field identified by the pathfns
?- Definition Classes
- Cursor
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLeaf: Boolean
Is the value at this
Cursor
of a scalar or enum type?Is the value at this
Cursor
of a scalar or enum type?- Definition Classes
- AbstractCursor → Cursor
- def isList: Boolean
Is the value at this
Cursor
of a list type?Is the value at this
Cursor
of a list type?- Definition Classes
- AbstractCursor → Cursor
- def isNullable: Boolean
Is the value at this
Cursor
of a nullable type?Is the value at this
Cursor
of a nullable type?- Definition Classes
- AbstractCursor → Cursor
- def listPath(fns: List[String]): Result[List[Cursor]]
Yield a list of
Cursor
s corresponding to the values generated by following the pathfns
from the value at thisCursor
, or an error on the left hand side if there is no such path.Yield a list of
Cursor
s corresponding to the values generated by following the pathfns
from the value at thisCursor
, or an error on the left hand side if there is no such path.- Definition Classes
- Cursor
- def narrow(subtpe: TypeRef): Result[Cursor]
Yield a
Cursor
corresponding to the value at thisCursor
narrowed to typesubtpe
, or an error on the left hand side if such a narrowing is not possible.Yield a
Cursor
corresponding to the value at thisCursor
narrowed to typesubtpe
, or an error on the left hand side if such a narrowing is not possible.- Definition Classes
- AbstractCursor → Cursor
- def narrowsTo(subtpe: TypeRef): Boolean
Is the value at this
Cursor
narrowable tosubtpe
?Is the value at this
Cursor
narrowable tosubtpe
?- Definition Classes
- AbstractCursor → Cursor
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def nullableField(fieldName: String): Result[Cursor]
Yield a
Cursor
corresponding to the value of the possibly nullable fieldfieldName
of the value at thisCursor
, 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 fieldfieldName
of the value at thisCursor
, or an error on the left hand side if there is no such field.- Definition Classes
- Cursor
- def nullableHasField(fieldName: String): Boolean
Does the possibly nullable value at this
Cursor
have an attributed namedattributeName
?Does the possibly nullable value at this
Cursor
have an attributed namedattributeName
?- Definition Classes
- Cursor
- def path(fns: List[String]): Result[Cursor]
Yield a
Cursor
corresponding to the value of the field identified by pathfns
starting from the value at thisCursor
, 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 pathfns
starting from the value at thisCursor
, or an error on the left hand side if there is no such field.- Definition Classes
- Cursor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()