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

foundation.jpa.querydsl.StateLPar2 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 StateLPar2 extends StackState> {

// NoStack:
// Stack:
    public StateLPar2(foundation.jpa.querydsl.QueryFactory factory, foundation.rpg.common.symbols.LPar node, StackState prev) {
        super(factory, node, prev);
    }


// Reduce:
// Shift:
    @Override
    public State visitLogicalOrBooleanExpression(com.querydsl.core.types.dsl.BooleanExpression symbol) {
        return new StateLogicalOrBooleanExpression3(getFactory(), symbol, this);
    }

    @Override
    public State visitLogicalAndBooleanExpression(com.querydsl.core.types.dsl.BooleanExpression symbol) {
        return new StateLogicalAndBooleanExpression2(getFactory(), symbol, this);
    }

    @Override
    public State visitRelationalBooleanExpression(com.querydsl.core.types.dsl.BooleanExpression symbol) {
        return new StateRelationalBooleanExpression2(getFactory(), symbol, this);
    }

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

    @Override
    public State visitLPar(foundation.rpg.common.symbols.LPar symbol) {
        return new StateLPar3(getFactory(), symbol, this);
    }

    @Override
    public State visitExpression(com.querydsl.core.types.Expression symbol) {
        return new StateExpression2(getFactory(), symbol, this);
    }

    @Override
    public State visitAdditiveExpression(com.querydsl.core.types.Expression symbol) {
        return new StateAdditiveExpression2(getFactory(), symbol, this);
    }

    @Override
    public State visitMultiplicativeExpression(com.querydsl.core.types.Expression symbol) {
        return new StateMultiplicativeExpression2(getFactory(), symbol, this);
    }

    @Override
    public State visitUnaryExpression(com.querydsl.core.types.Expression symbol) {
        return new StateUnaryExpression2(getFactory(), symbol, this);
    }

    @Override
    public State visitMinus(foundation.rpg.common.symbols.Minus symbol) {
        return new StateMinus2(getFactory(), symbol, this);
    }

    @Override
    public State visitAtomicExpression(com.querydsl.core.types.Expression symbol) {
        return new StateAtomicExpression2(getFactory(), symbol, this);
    }

    @Override
    public State visitObject(java.lang.Object symbol) {
        return new StateObject2(getFactory(), symbol, this);
    }

    @Override
    public State visitDouble(java.lang.Double symbol) {
        return new StateDouble2(getFactory(), symbol, this);
    }

    @Override
    public State visitLong(java.lang.Long symbol) {
        return new StateLong2(getFactory(), symbol, this);
    }

    @Override
    public State visitString(java.lang.String symbol) {
        return new StateString2(getFactory(), symbol, this);
    }

    @Override
    public State visitIdentifier(foundation.rpg.common.symbols.Identifier symbol) {
        return new StateIdentifier2(getFactory(), symbol, this);
    }


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

}