abstract class Ref extends YNode
A Yaml Node Reference, methods are redirected to the target node
- Alphabetic
- By Inheritance
- Ref
- YNode
- YNodeLike
- YValueLike
- YPart
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Ref(location: SourceLocation, cs: Parts)
Abstract Value Members
Concrete Value Members
-
def
!=(b: YValueLike): Boolean
- Definition Classes
- YValueLike
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
==(b: YValueLike): Boolean
- Definition Classes
- YValueLike
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
alias(location: SourceLocation = Unknown): YNode
Create a reference (alias) to this node
Create a reference (alias) to this node
- Definition Classes
- YNode
-
def
anchor(name: String): YNode
Create a new node with an anchor
Create a new node with an anchor
- Definition Classes
- YNode
- val anchor: Option[YAnchor]
-
def
as[T](validation: (T) ⇒ Option[String])(implicit conversion: YRead[T], iv: IllegalTypeHandler): T
Tries to convert the node into a T, throwing an exception if it can't.
Tries to convert the node into a T, throwing an exception if it can't. An implicit YRead[T] must be defined. An additional validation can be provided
- Definition Classes
- YNodeLike
-
def
as[T](implicit conversion: YRead[T], iv: IllegalTypeHandler): T
Tries to convert the node into a T, throwing an exception if it can't.
Tries to convert the node into a T, throwing an exception if it can't. An implicit YRead[T] must be defined.
- Definition Classes
- YNodeLike
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asOption[T](implicit arg0: YRead[T]): Option[T]
Tries to convert the node into a T.
Tries to convert the node into a T. An implicit YRead[T] must be defined. Any error is mapped to None
- Definition Classes
- YNodeLike
-
def
asScalar: Option[YScalar]
Returns true if the Node value is an YScalar
Returns true if the Node value is an YScalar
- Definition Classes
- YNode
-
val
children: IndexedSeq[YPart]
- Definition Classes
- YPart
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- YNode → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- YNode → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNull: Boolean
Returns true if the node is consider a null one
-
val
location: SourceLocation
- Definition Classes
- YPart
-
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
obj: YObj
Returns the Node as an YObj
-
def
range: InputRange
- Definition Classes
- YPart
-
def
sourceName: String
- Definition Classes
- YPart
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def tagType: YType
- def thisNode: YNode
-
def
to[T](validation: (T) ⇒ Option[String])(implicit arg0: YRead[T]): Either[YError, T]
Tries to convert the node, then if successful performs an additional validation that must return Some(errorMessage) or None.
-
def
to[T](implicit arg0: YRead[T]): Either[YError, T]
Tries to convert the node and return either the value converted or an YError
-
def
toString(): String
- Definition Classes
- YNode → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()