1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.List ; 22 import org.netbeans.jmi.javamodel.*; 23 import org.netbeans.mdr.storagemodel.StorableClass; 24 25 26 30 public abstract class ForStatementClassImpl extends MEFactory implements ForStatementClass { 31 32 33 public ForStatementClassImpl(StorableClass s) { 34 super(s); 35 } 36 37 41 public ForStatement createForStatement() { 42 return create(null, null, null, null); 43 } 44 45 private ForStatementImpl create(Expression expression, List steps, Statement body, List init) { 46 ForStatementImpl result = (ForStatementImpl) create(null); 47 result.setNew(); 48 result.setData(expression, steps, body, init); 49 return result; 50 } 51 52 public ForStatement createForStatement(Expression expression, List steps, Statement body, List init) { 53 return create(expression, steps, body, init); 54 } 55 } 56 | Popular Tags |