see

Binding

trait Binding extends Resolver

A Binding contains a mapping of variable names to actual values. The mapping may change during expression evaluation!

Linear Supertypes
Resolver, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Binding
  2. Resolver
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def clear(): Unit

    Removes all names from local scope.

    Removes all names from local scope. Names from a parent resolver are not affected.

  2. abstract def contains(name: String): Boolean

    Checks, if the resolver will accept a name.

    Checks, if the resolver will accept a name.

    name

    Variable name to look up.

    returns

    True, if Resolver will provide a value for the name, otherwise false.

    Definition Classes
    Resolver
  3. abstract def get(name: String): AnyRef

    Retrieves value for a name.

    Retrieves value for a name.

    name

    Variable name to look up

    returns

    Value bound to that name. If the implementation cannot provide a value, it should return null.

    Definition Classes
    Resolver
  4. abstract def getNames(): Set[String]

    Retrieves a set of locally defined names.

    Retrieves a set of locally defined names.

    returns

    Set of names that are defined within local scope. The set may be empty.

  5. abstract def getParent: Resolver

    Retrieves the parent resolver.

    Retrieves the parent resolver.

    returns

    Current parent resolver, may be null.

  6. abstract def set(name: String, v: AnyRef): Unit

    Associates a value with a name.

    Associates a value with a name.

    name

    Variable name to (re-)define

    v

    Value to associate with the name. An implementation is not required to allow value setting. If it doesn't, it should silently ignore the request.

    Definition Classes
    Resolver
  7. abstract def setLocal(name: String, v: AnyRef): Unit

    Defines a name within current resolver.

    Defines a name within current resolver. The name association will be created within local scope, even if the parent resolver contains a definition for that name.

    name

    Variable name to (re-)define

    v

    Value to associate with the name. May be null, in which case the name is still regarded as defined, but will cause an evaluation error, if it is dereferenced.

  8. abstract def setParent(r: Resolver): Unit

    Sets the parent resolver for the binding.

    Sets the parent resolver for the binding. Any name reference that cannot be resolved locally will be forwarded to the parent resolver.

    r

    Resolver to use as parent. May be null.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Resolver

Inherited from AnyRef

Inherited from Any