HasPath

upickle.core.TraceVisitor$.HasPath
trait HasPath

Internally, the paths form a linked list back to the root by the visitors themselves. Compared to something like a List[String] or List[Object], this does not require extra String allocation or boxing unless we actually ask for the path.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object RootHasPath.type

Members list

Value members

Abstract methods

def parent: Option[HasPath]

Forms a chain toward the root.

Forms a chain toward the root.

Attributes

def pathComponent: Option[String]

Attributes

Returns

name of a single level, if any, e.g. "foo"

Concrete methods

def path: String

Attributes

Returns

the full JSONPath

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any