All Downloads are FREE. Search and download functionalities are using the official Maven repository.

foundation.jpa.querydsl.StateExpression1 Maven / Gradle / Ivy

There is a newer version: 0.29
Show newest version
package foundation.jpa.querydsl;

import foundation.rpg.parser.UnexpectedInputException;
import foundation.rpg.parser.Named;

import java.util.Arrays;
import java.util.List;

// Generated visitor pattern based state for grammar parser.
public class StateExpression1 extends StackState {

// NoStack:
// Stack:
    public StateExpression1(foundation.jpa.querydsl.QueryFactory factory, com.querydsl.core.types.Expression node, State prev) {
        super(factory, node, prev);
    }


// Reduce:
    @Override
    public State visitEnd(foundation.rpg.parser.End symbol) throws UnexpectedInputException {
        State stack1 = this.getPrev();
        return stack1.visitRelationalBooleanExpression(getFactory().is(this.getNode())).visitEnd(symbol);
    }

    @Override
    public State visitOr(foundation.rpg.common.symbols.Or symbol) throws UnexpectedInputException {
        State stack1 = this.getPrev();
        return stack1.visitRelationalBooleanExpression(getFactory().is(this.getNode())).visitOr(symbol);
    }

    @Override
    public State visitAnd(foundation.rpg.common.symbols.And symbol) throws UnexpectedInputException {
        State stack1 = this.getPrev();
        return stack1.visitRelationalBooleanExpression(getFactory().is(this.getNode())).visitAnd(symbol);
    }


// Shift:
    @Override
    public State visitEqual(foundation.rpg.common.symbols.Equal symbol) {
        return new StateEqual1(getFactory(), symbol, this);
    }

    @Override
    public State visitExclEqual(foundation.rpg.common.symbols.ExclEqual symbol) {
        return new StateExclEqual1(getFactory(), symbol, this);
    }

    @Override
    public State visitIs(foundation.rpg.common.symbols.Is symbol) {
        return new StateIs1(getFactory(), symbol, this);
    }

    @Override
    public State visitNot(foundation.rpg.common.symbols.Not symbol) {
        return new StateNot3(getFactory(), symbol, this);
    }

    @Override
    public State visitIn(foundation.rpg.common.symbols.In symbol) {
        return new StateIn1(getFactory(), symbol, this);
    }

    @Override
    public State visitTilda(foundation.rpg.common.symbols.Tilda symbol) {
        return new StateTilda1(getFactory(), symbol, this);
    }

    @Override
    public State visitGt(foundation.rpg.common.symbols.Gt symbol) {
        return new StateGt1(getFactory(), symbol, this);
    }

    @Override
    public State visitLt(foundation.rpg.common.symbols.Lt symbol) {
        return new StateLt1(getFactory(), symbol, this);
    }

    @Override
    public State visitGtEqual(foundation.rpg.common.symbols.GtEqual symbol) {
        return new StateGtEqual1(getFactory(), symbol, this);
    }

    @Override
    public State visitLtEqual(foundation.rpg.common.symbols.LtEqual symbol) {
        return new StateLtEqual1(getFactory(), symbol, this);
    }


// Accept:
    @Override
    public List stack() {
        State stack1 = this.getPrev();
        return Arrays.asList(this.getNode());
    }

}