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