📄 gifthenelse.java
字号:
package org.tzi.use.gen.assl.statics;/** * @see org.tzi.use.gen.assl.statics * @author Hanna Bauerdick */public class GIfThenElse extends GInstruction { private GInstructionList fThenInstructionList; private GInstructionList fElseInstructionList; private GValueInstruction fConditionInstr; public GIfThenElse() { fThenInstructionList = new GInstructionList(); fElseInstructionList = new GInstructionList(); fConditionInstr = null; } public void setConditionInstr( GValueInstruction conditionInstr ) { fConditionInstr = conditionInstr; } public void addThenInstruction( GInstruction instr ) { fThenInstructionList.add( instr ); } public void addElseInstruction( GInstruction instr ) { fElseInstructionList.add( instr ); } public GValueInstruction conditionInstr() { return fConditionInstr; } public GInstructionList thenInstructionList() { return fThenInstructionList; } public GInstructionList elseInstructionList() { return fElseInstructionList; } public String toString() { return "if " + fConditionInstr + " then begin ... end else begin ... end"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -