Package org.teavm.model.instructions

Examples of org.teavm.model.instructions.ConstructInstruction


                    ValueType.object("javax.tools.JavaCompiler")));
            Program program = new Program();
            BasicBlock block = program.createBasicBlock();
            program.createVariable();
            Variable var = program.createVariable();
            ConstructInstruction construct = new ConstructInstruction();
            construct.setReceiver(var);
            construct.setType("com.sun.tools.javac.api.JavacTool");
            block.getInstructions().add(construct);
            InvokeInstruction init = new InvokeInstruction();
            init.setInstance(var);
            init.setType(InvocationType.SPECIAL);
            init.setMethod(new MethodReference("com.sun.tools.javac.api.JavacTool", "<init>", ValueType.VOID));
View Full Code Here

TOP

Related Classes of org.teavm.model.instructions.ConstructInstruction

Copyright © 2018 www.massapicom. 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.