1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.Catch; 22 import org.netbeans.jmi.javamodel.CatchClass; 23 import org.netbeans.jmi.javamodel.Parameter; 24 import org.netbeans.jmi.javamodel.StatementBlock; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 28 32 public abstract class CatchClassImpl extends MEFactory implements CatchClass { 33 34 35 public CatchClassImpl(StorableClass s) { 36 super(s); 37 } 38 39 43 public Catch createCatch() { 44 return create(null, null); 45 } 46 47 private CatchImpl create(Parameter parameter, StatementBlock body) { 48 CatchImpl result = (CatchImpl) create(null); 49 result.setNew(); 50 result.setData(parameter, body); 51 return result; 52 } 53 54 public Catch createCatch(Parameter parameter, StatementBlock body) { 55 return create(parameter, body); 56 } 57 } 58 | Popular Tags |