1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.List ; 22 import org.netbeans.jmi.javamodel.Expression; 23 import org.netbeans.jmi.javamodel.SwitchStatement; 24 import org.netbeans.jmi.javamodel.SwitchStatementClass; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 28 29 33 public abstract class SwitchStatementClassImpl extends MEFactory implements SwitchStatementClass { 34 35 36 public SwitchStatementClassImpl(StorableClass s) { 37 super(s); 38 } 39 40 44 public SwitchStatement createSwitchStatement() { 45 return create(null, null); 46 } 47 48 private SwitchStatementImpl create(Expression expression, List cases) { 49 SwitchStatementImpl result = (SwitchStatementImpl) create(null); 50 result.setNew(); 51 result.setData(expression, cases); 52 return result; 53 } 54 55 public SwitchStatement createSwitchStatement(Expression expression, List cases) { 56 return create(expression, cases); 57 } 58 } 59 | Popular Tags |