A method that should be called from every well-designed equals method that is open to be overridden in a subclass.
A method that should be called from every well-designed equals method that is open to be overridden in a subclass. See Programming in Scala, Chapter 28 for discussion and design.
true if this instance can possibly equal that
, otherwise false
The equality method for reference types.
The hashCode method for reference types.
The source position of this object, initially set to undefined.
The source position of this object, initially set to undefined.
The size of this product.
The size of this product.
for a product A(x_1, ..., x_k)
, returns k
The nth element of this product, 0-based.
The nth element of this product, 0-based. In other words, for a
product A(x_1, ..., x_k)
, returns x_(n+1) where 0 < n < k.
the element n
elements after the first element
An iterator over all the elements of this product.
An iterator over all the elements of this product.
in the default implementation, an Iterator[Any]
A string used in the toString
methods of derived classes.
A string used in the toString
methods of derived classes.
Implementations may override this method to prepend a string prefix
to the result of toString methods.
in the default implementation, the empty string
Returns the element this BoundElement
stands for.
Returns the element this BoundElement
stands for.
The Proxy
trait ensures equals
, hashCode
and toString
are forwarded to
the result of this method.
If current source position is undefined, update it with given position newpos'
If current source position is undefined, update it with given position newpos'
the object itself
Creates a String representation of this object.
Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.
a String representation of the object.
(Since version 2.8.0) use productIterator instead
A
BoundElement
is bound in a certain scopescope
, which keeps track of the actual element thatel
stands for.A
BoundElement
is represented textually by its bound element, followed by its scope'sid
. For example:x@1
represents the variablex
that is bound in the scope withid
1
.scope.binds(el)
holds before and after.