class ValScope extends AnyRef
ValScopes which model the lexical scopes within
a Jsonnet file that bind variable names to Vals, as well as other
contextual information like self
this
or super
.
Note that scopes are standalone, and nested scopes are done by copying and updating the array of bindings rather than using a linked list. This is because the bindings array is typically pretty small and the constant factor overhead from a cleverer data structure dominates any algorithmic improvements
The bindings array is private and only copy-on-write, so for nested scopes
which do not change it (e.g. those just updating dollar0
or self0
) the
bindings array can be shared cheaply.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ValScope
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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 bindings(k: Int): Lazy
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val dollar0: Obj
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extend(newBindingsI: Array[Bind] = null, newBindingsF: Array[(Obj, Obj) ⇒ Lazy] = null, newDollar: Obj = null, newSelf: Obj = null, newSuper: Obj = null): ValScope
- def extendSimple(newBindingI: Int, newBindingV: Lazy): ValScope
- def extendSimple(newBindingsI1: Array[Int], newBindingsV1: Array[Lazy], newBindingsI2: Array[Int], newBindingsV2: Array[Lazy]): ValScope
- def extendSimple(newBindingsI: Array[Int], newBindingsV: Array[Lazy]): ValScope
-
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()
- val self0: Obj
- val super0: Obj
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()