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.Statement; 24 import org.netbeans.jmi.javamodel.Case; 25 import org.netbeans.jmi.javamodel.CaseClass; 26 import org.netbeans.mdr.storagemodel.StorableClass; 27 28 32 public abstract class CaseClassImpl extends MEFactory implements CaseClass { 33 34 35 public CaseClassImpl(StorableClass s) { 36 super(s); 37 } 38 39 43 public Case createCase() { 44 return create(null, null); 45 } 46 47 private CaseImpl create(Expression value, List statements) { 48 CaseImpl result = (CaseImpl) create(null); 49 result.setNew(); 50 result.setData(value, statements); 51 return result; 52 } 53 54 public Case createCase(Expression value, List statements) { 55 return create(value, statements); 56 } 57 } 58 | Popular Tags |