File tree Expand file tree Collapse file tree
src/main/java/org/scijava/parsington/eval Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 </parent >
1111
1212 <artifactId >parsington</artifactId >
13- <version >3.1.1 -SNAPSHOT</version >
13+ <version >3.2.0 -SNAPSHOT</version >
1414
1515 <name >Parsington: The SciJava Expression Parser</name >
1616 <description >A general-purpose mathematical expression parser, which converts infix expression strings into postfix queues and/or syntax trees.</description >
Original file line number Diff line number Diff line change 3030
3131package org .scijava .parsington .eval ;
3232
33+ import java .util .Collections ;
3334import java .util .HashMap ;
3435import java .util .Map ;
3536
@@ -79,6 +80,11 @@ public Object get(final String name) {
7980 return new Unresolved (name );
8081 }
8182
83+ @ Override
84+ public Map <String , Object > getAll () {
85+ return Collections .unmodifiableMap (vars );
86+ }
87+
8288 @ Override
8389 public void set (final String name , final Object value ) {
8490 vars .put (name , value );
Original file line number Diff line number Diff line change @@ -167,6 +167,13 @@ default Object get(final Variable v) {
167167 return get (v .getToken ());
168168 }
169169
170+ /**
171+ * Gets a map of all variable names and values.
172+ *
173+ * @return A map from variable names to variable values.
174+ */
175+ Map <String , Object > getAll ();
176+
170177 /**
171178 * Sets the value of a variable.
172179 *
You can’t perform that action at this time.
0 commit comments