Examples of ExitInstruction


Examples of org.teavm.model.instructions.ExitInstruction

            InvokeInstruction init = new InvokeInstruction();
            init.setInstance(var);
            init.setType(InvocationType.SPECIAL);
            init.setMethod(new MethodReference("com.sun.tools.javac.api.JavacTool", "<init>", ValueType.VOID));
            block.getInstructions().add(init);
            ExitInstruction exit = new ExitInstruction();
            exit.setValueToReturn(var);
            block.getInstructions().add(exit);
            method.setProgram(program);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.