gifthenelse.java
来自「UML设计测试工具」· Java 代码 · 共 46 行
JAVA
46 行
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 + =
减小字号Ctrl + -
显示快捷键?