Class VarExprList

  • public class VarExprList
    extends java.lang.Object
    • Constructor Detail

      • VarExprList

        public VarExprList​(java.util.List<Var> vars)
      • VarExprList

        public VarExprList​(VarExprList other)
      • VarExprList

        public VarExprList()
      • VarExprList

        public VarExprList​(Var var,
                           Expr expr)
    • Method Detail

      • getVars

        public java.util.List<Var> getVars()
      • getExprs

        public java.util.Map<Var,​Expr> getExprs()
      • forEachExpr

        public void forEachExpr​(java.util.function.BiConsumer<Var,​Expr> action)
        Call the action for each (variable, expression) defined. Not called when there is no expression, just a variable. Not order preserving.
      • forEachVarExpr

        public void forEachVarExpr​(java.util.function.BiConsumer<Var,​Expr> action)
        Call the action for each variable, in order. The expression may be null. Not called when there is no expression, just a variable.
      • forEachVar

        public void forEachVar​(java.util.function.Consumer<Var> action)
        Call the action for each variable, in order.
      • contains

        public boolean contains​(Var var)
      • hasExpr

        public boolean hasExpr​(Var var)
      • getExpr

        public Expr getExpr​(Var var)
      • add

        public void add​(Var var)
      • add

        public void add​(Var var,
                        Expr expr)
      • remove

        public void remove​(Var var)
      • clear

        public void clear()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object