Interface StaticScope<T>

    • Method Detail

      • getRootNode

        Node getRootNode()
        Returns the root node associated with this scope. May be null.
      • getParentScope

        StaticScope<T> getParentScope()
        Returns the scope enclosing this one or null if none.
      • getSlot

        StaticSlot<T> getSlot​(java.lang.String name)
        Returns any defined slot within this scope for this name. This call continues searching through parent scopes if a slot with this name is not found in the current scope.
        Parameters:
        name - The name of the variable slot to look up.
        Returns:
        The defined slot for the variable, or null if no definition exists.
      • getOwnSlot

        StaticSlot<T> getOwnSlot​(java.lang.String name)
        Like getSlot but does not recurse into parent scopes.
      • getTypeOfThis

        T getTypeOfThis()
        Returns the expected type of this in the current scope.