sealed trait RefTree extends AnyRef
A RefTree represents the object tree of an immutable data structure. Mutable data can be represented as well, as long as it is acyclic.
A RefTree has three subtypes:
- RefTree.Ref represents an object (AnyRef) with identity and a sequence of fields;
- RefTree.Val represents a value (AnyVal);
- RefTree.Null is a special case to represent
null
.
This type is mainly geared towards visualization of structural sharing, however in some cases the representation can be simplified for the benefit of the visualization. For example, reftree.contrib.SimplifiedInstances contains “black box” representations of List, Seq and Map that do not expose the internal structure.
A RefTree for a type A
can be obtained using the ToRefTree typeclass.
- Alphabetic
- By Inheritance
- RefTree
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
highlight: Boolean
Whether this tree should be highlighted during visualization
-
abstract
def
id: String
The identifier for this tree.
The identifier for this tree. Note that this is unique only for RefTree.Ref. For RefTree.Null it is always
null
, and value (RefTree.Val) identifiers are shared across all equivalent values.
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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- 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
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toField: Field
Convert to a field usable in other trees
-
def
toString(): String
- Definition Classes
- 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()
-
def
withHighlight(highlight: Boolean): Product with Serializable with RefTree
Add or remove highlighting