1 package net.mograsim.machine.mi.parameters;
3 import net.mograsim.logic.core.types.BitVector;
5 public final class Mnemonic implements MicroInstructionParameter
7 private final String text;
8 private final BitVector vector;
10 public Mnemonic(String text, BitVector vector)
17 public String getText()
23 public BitVector getValue()
33 result = prime * result + ((text == null) ? 0 : text.hashCode());
34 result = prime * result + ((vector == null) ? 0 : vector.hashCode());
39 public boolean equals(Object obj)
45 if (!(obj instanceof Mnemonic))
47 Mnemonic other = (Mnemonic) obj;
50 if (other.text != null)
52 } else if (!text.equals(other.text))
56 if (other.vector != null)
58 } else if (!vector.equals(other.vector))
64 public ParameterType getType()
66 return ParameterType.MNEMONIC;