scala.util.parsing.ast.Binders.BoundElement

class BoundElement

case class BoundElement[boundElement <: NameElement](val el : boundElement, val scope : Scope[boundElement])

 extends NameElement with Proxy with BindingSensitive with Product


A `BoundElement' is bound in a certain scope `scope', which keeps track of the actual element that `el' stands for. A `BoundElement' is represented textually by its bound element, followed by its scope's `id'. For example: `x@1' represents the variable `x' that is bound in the scope with `id' `1'. @invar scope.binds(el)


Source: Binders.scala(198)

 Constructors

def this(el : boundElement, scope : Scope[boundElement])

 Fields

name def name String
pos var pos
The source position of this object, initially set to undefined
Position Positional
productArity override def productArity
return k for a product A(x_1, [details]
..,x_k)
Int
productPrefix override def productPrefix
By default the empty string [details]
Implementations may override this method in order to prepend a string prefix to the result of the toString methods.
String
self def self
Returns the element this `BoundElement' stands for [details]
The `Proxy' trait ensures `equals', `hashCode' and `toString' are forwarded to the result of this method.
Element

 Methods

!= final def !=(arg0 : Object) Boolean AnyRef
!= final def !=(arg0 : Any) Boolean Any
== final def ==(arg0 : Any) Boolean Any
== final def ==(arg0 : Object) Boolean AnyRef
alpha_== def alpha_==[t <: NameElement](other : BoundElement[t]) Boolean
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals override def equals(that : Any) Boolean Proxy
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Any] AnyRef
hashCode override def hashCode Int Proxy
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
productElement override def productElement(arg0 : Int)
for a product A(x_1, [details]
..,x_k), returns x_(n+1) for 0 <= n < k
param
n - the index of the element to return
return
- The element n elements after the first element
Any
setPos def setPos(newpos : Position)
If current source position is undefined, update it with given position `newpos' [details]
return
- the object itself
Positional Positional
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString override def toString String
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
Copyright (c) 2008. All Rights Reserved.