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

com.ql.util.express.instruction.ContinueInstructionFactory Maven / Gradle / Ivy

Go to download

QLExpress is a powerful, lightweight, dynamic language for the Java platform aimed at improving developers’ productivity in different business scenes.

The newest version!
package com.ql.util.express.instruction;

import java.util.Stack;

import com.ql.util.express.ExpressRunner;
import com.ql.util.express.InstructionSet;
import com.ql.util.express.instruction.detail.InstructionGoTo;
import com.ql.util.express.parse.ExpressNode;

public class ContinueInstructionFactory extends InstructionFactory {
    @Override
    public boolean createInstruction(ExpressRunner expressRunner, InstructionSet result,
        Stack forStack, ExpressNode node, boolean isRoot) {
        InstructionGoTo continueInstruction = new InstructionGoTo(result.getCurrentPoint() + 1);
        continueInstruction.setName("continue");
        forStack.peek().continueList.add(continueInstruction);
        result.addInstruction(continueInstruction.setLine(node.getLine()));
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy