package st.gravel.support.compiler.jvm; /* This file is automatically generated from typed smalltalk source. Do not edit by hand. (C) AG5.com */ import java.math.BigInteger; import st.gravel.support.jvm.NonLocalReturn; import st.gravel.support.compiler.jvm.WhileLoop; import st.gravel.support.compiler.jvm.WhileLoop.WhileLoop_Factory; import st.gravel.support.compiler.jvm.JVMStack; import st.gravel.support.compiler.jvm.JVMInstruction; import st.gravel.support.compiler.jvm.Frame; import st.gravel.support.compiler.jvm.JVMType; public class WhileIntCompLoop extends WhileLoop implements Cloneable { public static WhileIntCompLoop_Factory factory = new WhileIntCompLoop_Factory(); public static class WhileIntCompLoop_Factory extends WhileLoop_Factory { public WhileIntCompLoop basicNew() { WhileIntCompLoop newInstance = new WhileIntCompLoop(); newInstance.initialize(); return newInstance; } } public WhileIntCompLoop copy() { try { WhileIntCompLoop _temp1 = (WhileIntCompLoop) this.clone(); _temp1.postCopy(); return _temp1; } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } } @Override public JVMInstruction effectStack_(final JVMStack _aJVMStack) { super.effectStack_(_aJVMStack); st.gravel.support.jvm.ObjectExtensions.assert_(this, st.gravel.support.jvm.IntegerExtensions.equals_(_testFrame.endStack().size(), 2)); st.gravel.support.jvm.ObjectExtensions.assert_(this, _testFrame.endStack().peek().isIntType()); st.gravel.support.jvm.ObjectExtensions.assert_(this, _testFrame.endStack().peek_(2).isIntType()); return this; } public WhileIntCompLoop_Factory factory() { return factory; } @Override public WhileIntCompLoop initializeTestFrame_doFrame_(final Frame _aFrame, final Frame _aFrame2) { _testFrame = _aFrame; _doFrame = _aFrame2; this.initialize(); return this; } @Override public WhileIntCompLoop printOn_(final StringBuilder _aStream) { final String _title; _title = this.factory().toString(); _aStream.append(st.gravel.support.jvm.CharacterExtensions.isVowel(_title.charAt(0)) ? "an " : "a "); _aStream.append(_title); _aStream.append('['); this.sourceOn_(_aStream); _aStream.append(']'); return this; } @Override public WhileIntCompLoop sourceOn_(final StringBuilder _aStream) { return this; } @Override public WhileIntCompLoop withReturnType_(final JVMType _aType) { if (st.gravel.support.jvm.ObjectExtensions.equals_(this.type(), _aType)) { return WhileIntCompLoop.this; } throw new RuntimeException("niy"); } }