Class BlangScope

java.lang.Object
ca.ubc.stat.blang.jvmmodel.BlangScope

@Data
public class BlangScope
extends java.lang.Object
  • Constructor Details

  • Method Details

    • emptyScope

      public static BlangScope emptyScope()
      Create an empty scope.
    • operator_add

      public BlangScope.BlangVariable operator_add​(BlangScope.BlangVariable newVariable)
    • child

      public BlangScope child​(BlangScope.BlangVariable variable)
      Return a new scope containing this (via a pointer) + a single additional variable.
    • find

      public BlangScope.BlangVariable find​(java.lang.String deboxedName)
      Return the variable with the given deboxed name or null otherwise.
    • variables

      public java.lang.Iterable<BlangScope.BlangVariable> variables()
      Returns the variables in this scope
    • restrict

      public BlangScope restrict​(java.util.List<Dependency> dependencies)
    • hashCode

      @Pure public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      @Pure public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      @Pure public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getParent

      @Pure public BlangScope getParent()
    • getTopVariables

      @Pure public java.util.LinkedHashMap<java.lang.String,​BlangScope.BlangVariable> getTopVariables()