diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2018-03-01 19:13:48 -0500 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2018-03-01 19:13:48 -0500 |
| commit | f9d9bd4bbf7dd6a297e1daf5ee7b4263d706d9cd (patch) | |
| tree | 75ade2ca798bcdbdd7daf867480378299598581a /base/src/bjc/dicelang/DiceToken.java | |
| parent | b14a399d05fc90d8532cd08d1546e6bf197db10e (diff) | |
Update
Diffstat (limited to 'base/src/bjc/dicelang/DiceToken.java')
| -rw-r--r-- | base/src/bjc/dicelang/DiceToken.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/base/src/bjc/dicelang/DiceToken.java b/base/src/bjc/dicelang/DiceToken.java deleted file mode 100644 index fcb8a0c..0000000 --- a/base/src/bjc/dicelang/DiceToken.java +++ /dev/null @@ -1,43 +0,0 @@ -package bjc.dicelang; - -import bjc.dicelang.dice.DiceExpression; - -public class DiceToken extends Token { - public DiceExpression diceValue; - - public DiceToken(DiceExpression val) { - super(Type.DICE_LIT); - - diceValue = val; - } - - @Override - public String toString() { - return super.toString() + "(" + diceValue + ")"; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((diceValue == null) ? 0 : diceValue.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (!super.equals(obj)) - return false; - if (getClass() != obj.getClass()) - return false; - DiceToken other = (DiceToken) obj; - if (diceValue == null) { - if (other.diceValue != null) - return false; - } else if (!diceValue.equals(other.diceValue)) - return false; - return true; - } -} |
