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.WhileStatement; 24 import org.netbeans.jmi.javamodel.WhileStatementClass; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 31 public abstract class WhileStatementClassImpl extends MEFactory implements WhileStatementClass { 32 33 34 public WhileStatementClassImpl(StorableClass s) { 35 super(s); 36 } 37 38 42 public WhileStatement createWhileStatement() { 43 return create(null, null); 44 } 45 46 private WhileStatementImpl create(Expression expression, Statement body) { 47 WhileStatementImpl result = (WhileStatementImpl) create(null); 48 result.setNew(); 49 result.setData(expression, body); 50 return result; 51 } 52 53 public WhileStatement createWhileStatement(Expression expression, Statement body) { 54 return create(expression, body); 55 } 56 } 57 | Popular Tags |