1 19 20 package org.netbeans.modules.javacore.jmiimpl.javamodel; 21 22 import org.netbeans.jmi.javamodel.Expression; 23 import org.netbeans.jmi.javamodel.ForEachStatement; 24 import org.netbeans.jmi.javamodel.ForEachStatementClass; 25 import org.netbeans.jmi.javamodel.Parameter; 26 import org.netbeans.jmi.javamodel.Statement; 27 import org.netbeans.mdr.storagemodel.StorableClass; 28 29 40 public abstract class ForEachStatementClassImpl extends MEFactory implements ForEachStatementClass { 41 42 47 public ForEachStatementClassImpl(StorableClass c) { 48 super(c); 49 } 50 51 56 public ForEachStatement createForEachStatement() { 57 return create(null, null, null); 58 } 59 60 68 public ForEachStatement createForEachStatement(Statement body, Parameter parameter, Expression iterable) { 69 return create(body, parameter, iterable); 70 } 71 72 private ForEachStatementImpl create(Statement body, Parameter parameter, Expression iterable) { 76 ForEachStatementImpl result = (ForEachStatementImpl) create(null); 77 result.setNew(); 78 result.setData(body, parameter, iterable); 79 return result; 80 } 81 } 82 | Popular Tags |