1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.Expression; 22 import org.netbeans.jmi.javamodel.Statement; 23 import org.netbeans.jmi.javamodel.DoStatement; 24 import org.netbeans.jmi.javamodel.DoStatementClass; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 31 public abstract class DoStatementClassImpl extends MEFactory implements DoStatementClass { 32 33 34 public DoStatementClassImpl(StorableClass s) { 35 super(s); 36 } 37 38 42 public DoStatement createDoStatement() { 43 return create(null, null); 44 } 45 46 private DoStatementImpl create(Expression expression, Statement body) { 47 DoStatementImpl result = (DoStatementImpl) create(null); 48 result.setNew(); 49 result.setData(expression, body); 50 return result; 51 } 52 53 public DoStatement createDoStatement(Expression expression, Statement body) { 54 return create(expression, body); 55 } 56 } 57 | Popular Tags |