1 11 package org.eclipse.jdt.internal.corext.refactoring.code.flow; 12 13 class IfFlowInfo extends FlowInfo { 14 15 public void mergeCondition(FlowInfo info, FlowContext context) { 16 if (info == null) 17 return; 18 mergeAccessModeSequential(info, context); 19 } 20 21 public void merge(FlowInfo thenPart, FlowInfo elsePart, FlowContext context) { 22 if (thenPart == null && elsePart == null) 23 return; 24 25 GenericConditionalFlowInfo cond= new GenericConditionalFlowInfo(); 26 if (thenPart != null) 27 cond.merge(thenPart, context); 28 29 if (elsePart != null) 30 cond.merge(elsePart, context); 31 32 if (thenPart == null || elsePart == null) 33 cond.mergeEmptyCondition(context); 34 35 mergeSequential(cond, context); 36 } 37 } 38 39 | Popular Tags |