@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        RepeatNode other = (RepeatNode) obj;
        if (exp1 == null) {
            if (other.exp1 != null)
                return false;
        } else if (!exp1.equals(other.exp1))
            return false;
        if (stateSeq1 == null) {
            if (other.stateSeq1 != null)
                return false;
        } else if (!stateSeq1.equals(other.stateSeq1))
            return false;
        return true;
    }