diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-02-05 07:02:45 -0500 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-02-05 07:02:45 -0500 |
| commit | 186b9131d46d886c98316e5b582e0cdd734a5024 (patch) | |
| tree | 5a81a9163817f1b4cd9948a57dc9569d975bc38f /dice-lang/src/bjc/dicelang/BindingDiceExpression.java | |
| parent | e7a7cf10e2e9e05a6b12fd7c4d8d0ff2146901d9 (diff) | |
Cleanup
Diffstat (limited to 'dice-lang/src/bjc/dicelang/BindingDiceExpression.java')
| -rw-r--r-- | dice-lang/src/bjc/dicelang/BindingDiceExpression.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dice-lang/src/bjc/dicelang/BindingDiceExpression.java b/dice-lang/src/bjc/dicelang/BindingDiceExpression.java index 6a030e3..f41c364 100644 --- a/dice-lang/src/bjc/dicelang/BindingDiceExpression.java +++ b/dice-lang/src/bjc/dicelang/BindingDiceExpression.java @@ -10,15 +10,15 @@ import java.util.Map; * */ public class BindingDiceExpression implements IDiceExpression { - /** + /* * The expression being bound to a name */ private IDiceExpression expression; - /** + /* * The name to bind the expression to */ - private String variableName; + private String name; /** * Create a new dice expression binder from two expressions and an @@ -38,8 +38,8 @@ public class BindingDiceExpression implements IDiceExpression { if (!(left instanceof ReferenceDiceExpression)) { throw new UnsupportedOperationException( "Error: Binding an expression to something that is not a variable reference," - + " or array thereof. is unsupported." - + " Problematic expression is " + left); + + " or array thereof. is unsupported." + + " Problematic expression is " + left); } String varName = ((ReferenceDiceExpression) left).getName(); @@ -64,7 +64,7 @@ public class BindingDiceExpression implements IDiceExpression { private void initialize(String name, IDiceExpression expr, Map<String, IDiceExpression> enviroment) { - this.variableName = name; + this.name = name; this.expression = expr; enviroment.put(name, expr); @@ -87,7 +87,7 @@ public class BindingDiceExpression implements IDiceExpression { */ @Override public String toString() { - return "assign[n=" + variableName + ", exp=" - + expression.toString() + "]"; + return "assign[n=" + name + ", exp=" + + expression.toString() + "]"; } } |
