int rtype = ((Expression) steps.getLast()).returnsType();
int rtype = ((Expression) steps.get(steps.size() - 1)).returnsType();
    public int returnsType() {        if (steps.size() == 0) return Type.NODE;        int rtype = ((Expression) steps.getLast()).returnsType();        return rtype;    }